Jump to content

Recommended Posts

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

  • 2 months later...
Posted
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.

Posted

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)

Posted
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

Posted
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;

Posted
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;

  • Upvote 1
  • 10 months later...
Posted
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? 

Posted
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;
 

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