55143681 Posted September 22, 2018 Share Posted September 22, 2018 Dear: My grid have many records,after I check "33" and delete the record,the "44" is auto checked,but I wish nothing is checked after I delete one. And another question,when I check one row ,how to get a field value the row I have checked.thank everyone. after delete row "33",row "44" is checked Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 22, 2018 Share Posted September 22, 2018 Hello, UniDBGrid -> Options -> [dgDontShowSelected=True] Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 22, 2018 Share Posted September 22, 2018 3 hours ago, 55143681 said: another question,when I check one row ,how to get a field value the row I have checked.thank everyone. Have you seen this demo ?: \FMSoft\Framework\uniGUI\Demos\Desktop\GridMultiSelect - Checkbox procedure CopySelected(ADelete: Boolean); for example... Quote Link to comment Share on other sites More sharing options...
55143681 Posted September 22, 2018 Author Share Posted September 22, 2018 5 hours ago, Sherzod said: Hello, UniDBGrid -> Options -> [dgDontShowSelected=True] That does't work.I have set the option,Only at the first time ,no line is checked,but when you select one row and delete it ,the row behind it is auto checked. Quote Link to comment Share on other sites More sharing options...
55143681 Posted September 22, 2018 Author Share Posted September 22, 2018 5 hours ago, Sherzod said: Have you seen this demo ?: \FMSoft\Framework\uniGUI\Demos\Desktop\GridMultiSelect - Checkbox procedure CopySelected(ADelete: Boolean); for example... procedure TUniGridsMultiSelect.CopySelected(ADelete: Boolean); var I: Integer; begin ClientDataSet1.DisableControls; try for I := 0 to UniDBGrid1.SelectedRows.Count - 1 do begin ClientDataSet1.Bookmark := UniDBGrid1.SelectedRows; ClientDataSet2.Append; ClientDataSet2.CopyFields(ClientDataSet1); ClientDataSet2.Post; end; finally if ADelete then UniDBGrid1.SelectedRows.Delete; ClientDataSet1.EnableControls; end; end; What I want is to get a cell's value,but the example show me how to get a record. And another question,I have ask some questions from my email(55143681@qq.com=zhangweihou@qq.com),at this time ,I have nothing return,any body there? 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.