Jump to content

uniDBGrid how to check and uncheck a record


55143681

Recommended Posts

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.

   2018-09-22_210123.png.93bf17c540bd0e36c48baa1c5cddee6e.png          after delete row "33",row "44" is checked       2018-09-22_210613.png.1976d5bab299be71d0897dec70e345ec.png

Link to comment
Share on other sites

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

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?2018-09-23_062115.thumb.png.dcdff362486ae12a393ed5329433c251.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...