zhyhero Posted July 28, 2020 Share Posted July 28, 2020 UniDBGridCheckBox.zip 1.when click a datacell(row) , last selected state lost. 2.when switch page,last selected state lost. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 28, 2020 Share Posted July 28, 2020 11 minutes ago, zhyhero said: 1.when click a datacell(row) , last selected state lost. 2.when switch page,last selected state lost. Hello, Well this is the expected behavior. Quote Link to comment Share on other sites More sharing options...
zhyhero Posted July 29, 2020 Author Share Posted July 29, 2020 Thx ,i will try another way. Quote Link to comment Share on other sites More sharing options...
Gauravg Posted October 12, 2020 Share Posted October 12, 2020 On 7/28/2020 at 7:37 AM, zhyhero said: UniDBGridCheckBox.zipUnavailable 1.when click a datacell(row) , last selected state lost. 2.when switch page,last selected state lost. Hello zhyhero, Can you please share the code of 'selected info' button to select the specfic rows? Thanks Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2020 Share Posted October 12, 2020 5 minutes ago, Gauravg said: Can you please share the code of 'selected info' button to select the specfic rows? Hello, Can you please specify which edition of UniGUI are you using? If you are not using the trial version, you can adjust your forum email address and download. Quote Link to comment Share on other sites More sharing options...
irigsoft Posted October 12, 2020 Share Posted October 12, 2020 Hello, I create a standard Dbgrid and apply the selection from uniDbgrid, then this information is sent to the dll and actions are performed This way I get a choice from uniDBGrid and send it to a dll where it works with selected rows (Delete or get values from a cell) I just retrieve the selected rowID, save them and then use them (from Server side) Quote Link to comment Share on other sites More sharing options...
Gauravg Posted October 12, 2020 Share Posted October 12, 2020 1 hour ago, Sherzod said: Hello, Can you please specify which edition of UniGUI are you using? If you are not using the trial version, you can adjust your forum email address and download. Hello, I am using 1.90 build 1530. I am using licensed version Quote Link to comment Share on other sites More sharing options...
Gauravg Posted October 12, 2020 Share Posted October 12, 2020 48 minutes ago, irigsoft said: Hello, I create a standard Dbgrid and apply the selection from uniDbgrid, then this information is sent to the dll and actions are performed This way I get a choice from uniDBGrid and send it to a dll where it works with selected rows (Delete or get values from a cell) I just retrieve the selected rowID, save them and then use them (from Server side) Hello, I need to select the id of the selected rows, i am not sure how to access it in the following loop for i := 0 to grdUser.SelectedRows.Count-1 do begin end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted October 12, 2020 Share Posted October 12, 2020 4 minutes ago, Gauravg said: I am using licensed version Please adjust your forum email address then: Quote Link to comment Share on other sites More sharing options...
irigsoft Posted October 12, 2020 Share Posted October 12, 2020 8 minutes ago, Gauravg said: Hello, I need to select the id of the selected rows, i am not sure how to access it in the following loop for i := 0 to grdUser.SelectedRows.Count-1 do begin end; for i := 0 to grdUser.SelectedRows.Count-1 do begin grdUser.DataSource.DataSet.GotoBookmark(TUniBookmarkList (grdUser.SelectedRows[I])); SelectedIDLIst.Add (grdUser.DataSource.DataSet.RecNo); end; 1 Quote Link to comment Share on other sites More sharing options...
Rafael P Posted August 12, 2021 Share Posted August 12, 2021 On 10/12/2020 at 8:30 AM, irigsoft said: for i := 0 to grdUser.SelectedRows.Count-1 do begin grdUser.DataSource.DataSet.GotoBookmark(TUniBookmarkList (grdUser.SelectedRows[I])); SelectedIDLIst.Add (grdUser.DataSource.DataSet.RecNo); end; And how can i get values from multiple checkboxes selected in a dbgrid and display in a ShowMessage, for example? Quote Link to comment Share on other sites More sharing options...
irigsoft Posted August 12, 2021 Share Posted August 12, 2021 2 hours ago, Rafael P said: And how can i get values from multiple checkboxes selected in a dbgrid and display in a ShowMessage, for example? Did You try with if SelRowsList.Count > 0 then begin SelGrid.DataSource.DataSet.First; while not SelGrid.DataSource.DataSet.EOF do begin if SelRowsList.IndexOf (IntToStr (SelGrid.DataSource.DataSet.RecNo)) > -1 then SelGrid.SelectedRows.CurrentRowSelected := True; SelGrid.DataSource.DataSet.Next; end; end; SelRowsList.Clear; SelRowsList.Free; 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.