Jump to content

How to default uniDBGrid Selected Row?


20soft

Recommended Posts

On 9/21/2019 at 11:29 AM, Sherzod said:

Which edition? 

Are you mean using version ? i use unigui version 1.90.0.1508.

I want to restore grid selected  into UniDBGrid from my data , How can i do?

grid_selected.png

 

What I think I need is something like dbgrid1.selectedRows.add(someRowNum).

Link to comment
Share on other sites

16 minutes ago, 20soft said:

There are no solutions?

Hello,

Sorry for the late reply.

 

Firstly you can set this option:

UniDBGrid1.Options.dgDontShowSelected=True

Secondly, you can think about the select logic in this event:

procedure TMainForm.UniDBGrid1AfterLoad(Sender: TUniDBGrid);
begin

end;

http://forums.unigui.com/index.php?/topic/6309-multiselect-unidbgrid-select-rows-programmatically/

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...