heronim Posted September 2, 2022 Share Posted September 2, 2022 What is the correct way to append the table in unidbgrid automatically, all the solutions I saw on the forum fail somehow Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 3, 2022 Share Posted September 3, 2022 5 hours ago, heronim said: What is the correct way to append the table in unidbgrid automatically, all the solutions I saw on the forum fail somehow Hello, Sorry, the question is not clear. Quote Link to comment Share on other sites More sharing options...
heronim Posted September 8, 2022 Author Share Posted September 8, 2022 Hello! I need the user to reach the end of a grid by clicking on tab to insert a new line, automatically. I need this line to be discarded when the user hits ESC or hits the up arrow I need the user when entering a unidbgrid to automatically insert a blank line. All these behaviors are common in any grid in Delphi, but I'm having a hard time implementing them in Unigui. There are codes that deal with this in the forum like the one below, but they cause other problems and instabilities. How do I resolve this? Shouldn't these needs above be standard in Unigui? procedure TMainForm.UniDBGrid1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); var isLastRecord: Boolean; begin isLastRecord := (Sender as TUniDBGrid).DataSource.DataSet.RecNo = (Sender as TUniDBGrid).DataSource.DataSet.RecordCount; if (Key = VK_TAB)and(isLastRecord)and(TUniExDBGrid(Sender).CurrCol=(Sender as TUniDBGrid).Columns.Count-1) then begin // your logic (Sender as TUniDBGrid).DataSource.DataSet.Append; end; end; Quote Link to comment Share on other sites More sharing options...
heronim Posted October 11, 2022 Author Share Posted October 11, 2022 TESTE.GDBGRID_TEST.rar I prepared an example project, in addition to the "grid in dirt state" and "recno mismatch" error messages, focus is lost if all grids are active. Quote Link to comment Share on other sites More sharing options...
heronim Posted October 21, 2022 Author Share Posted October 21, 2022 Is something so simple in VCL so impossible in Unigui? Quote Link to comment Share on other sites More sharing options...
picyka Posted October 21, 2022 Share Posted October 21, 2022 13 minutos atrás, heronim disse: Algo tão simples na VCL é tão impossível em Unigui? I personally would not use grid to insert data. Quote Link to comment Share on other sites More sharing options...
heronim Posted October 21, 2022 Author Share Posted October 21, 2022 Does this mean unigrid was not made to include data? Quote Link to comment Share on other sites More sharing options...
picyka Posted October 21, 2022 Share Posted October 21, 2022 35 minutos atrás, heronim disse: Isso significa que a Unigrid não foi feita para incluir dados? As "I" said, I don't like it. And if you look at web systems, this is not common. Quote Link to comment Share on other sites More sharing options...
zhyhero Posted October 21, 2022 Share Posted October 21, 2022 Synchronous and asynchronous. A lot of asynchronous with web app. Quote Link to comment Share on other sites More sharing options...
heronim Posted October 22, 2022 Author Share Posted October 22, 2022 So my statement is correct, Unidbgrid is not for data inclusion Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 22, 2022 Share Posted October 22, 2022 On 10/11/2022 at 11:54 PM, heronim said: I prepared an example project, in addition to the "grid in dirt state" and "recno mismatch" error messages, focus is lost if all grids are active. I will try to check your testcase. 9 minutes ago, heronim said: So my statement is correct, Unidbgrid is not for data inclusion Not for displaying data you mean? If so, then your statement is incorrect. Quote Link to comment Share on other sites More sharing options...
heronim Posted October 24, 2022 Author Share Posted October 24, 2022 On 10/22/2022 at 11:50 AM, Sherzod said: I will try to check your testcase. Thanks Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted October 25, 2022 Share Posted October 25, 2022 Hi, in "intensive" systems, user must insert data directly into grid cells. Even if in web world this is a "strange" manner, we need direct input (with automatic append) on Dbgrids for porting Desktop applications, and this make differences with other competitor's systems because it's faster and more ergonomic. Thanks to all 2 Quote Link to comment Share on other sites More sharing options...
heronim Posted December 27, 2022 Author Share Posted December 27, 2022 Will this issue be addressed? Quote Link to comment Share on other sites More sharing options...
heronim Posted January 10, 2023 Author Share Posted January 10, 2023 The worst response for a customer isn't a negative, it's a vacuum. Quote Link to comment Share on other sites More sharing options...
Stemon63 Posted January 11, 2023 Share Posted January 11, 2023 I also need to append record sequentially in Dbgrid, but it seems that nobody have this need. It's too difficult to implement a working "VCL" datagrid input? I remember that a "light" grid for fast data input was planned (like a cached update on client). There are news on this? Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.