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 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] 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... 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. 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now