ale Posted April 23, 2022 Share Posted April 23, 2022 Hello im new at unigui and delphi, Is it possible for an unistringgrid fill with multi Adodataset? For example Adodataset1 fill row 1-10 on unistringgrid1, Adodataset2 fill row 11-20 on unistringgrid1, Adodataset3 fill row 21-30... and so on.. please help.. Thankyou Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 23, 2022 Share Posted April 23, 2022 Hello, What is the problem, especially if UniStringGrid is used? And please specify which edition and build of UniGUI are you using? Quote Link to comment Share on other sites More sharing options...
ale Posted April 23, 2022 Author Share Posted April 23, 2022 procedure TUniForm1.LoadDatatoStringGrid(ADODB:TADODataSet;StrGrid:TUniStringGrid); var i,j,col,Lin: Integer; Begin StrGrid.RowCount:=ADODB.RecordCount+1; StrGrid.ColCount:=ADODB.FieldCount; For Col := 0 To ADODB.FieldCount-1 Do StrGrid.Cells[Col,0] := ADODB.Fields[Col].FieldName; Lin := 0; While Not ADODB.Eof Do Begin For Col := 0 To ADODB.FieldCount-1 Do StrGrid.Cells[Col,Lin+StrGrid.FixedRows] := ADODB.Fields[Col].AsString; ADODB.Next; Inc(Lin); End; ADODB.close; end; I use this procedure, but if I load data from different Adodataset to stringgrid, it replace previous data ( start from row 1 again) . I want to make it continue the row from the previous data... Version 1.90.1552 delphi rad 10.4 please help.. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 23, 2022 Share Posted April 23, 2022 56 minutes ago, ale said: 1.90.1552 Trial edition? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 23, 2022 Share Posted April 23, 2022 1 hour ago, ale said: StrGrid.RowCount:=ADODB.RecordCount+1; You must take into account the previous count of rows, right? Quote Link to comment Share on other sites More sharing options...
ale Posted April 23, 2022 Author Share Posted April 23, 2022 I guess its trial version Quote Link to comment Share on other sites More sharing options...
ale Posted April 23, 2022 Author Share Posted April 23, 2022 yes, could you give some example to declare previous count of rows? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 23, 2022 Share Posted April 23, 2022 13 minutes ago, ale said: I guess its trial version Are you developing a program for someone? Interestingly, you don't know which UniGUI edition you are using. Quote Link to comment Share on other sites More sharing options...
ale Posted April 23, 2022 Author Share Posted April 23, 2022 its my partner tools, we still developed to deciding if this framework suitable to our projcect or not.. Quote Link to comment Share on other sites More sharing options...
albertovesx Posted April 29, 2022 Share Posted April 29, 2022 I use a virtual table. It is filled with all other sources and then I just link a Dbgrid with the virtual table. 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.