Jump to content

UniDBGrid row selection / grouped


jaromir

Recommended Posts

Hi,

 

How can I select row at delphi code when the grid is grouped by some field ?

Without grouping I can achive this by underlying dataset. But with grouping it doesn't work.

 

For example - I have grid with 10 records - something like: grid.select(8) for select row at index 8.

 

Thanks.

Link to comment
Share on other sites

  • 2 weeks later...

Thanks Delphi Developer.
 
Here is the same problem like before. Tested in GridGrouping demo.
When You have button with event:

procedure TMainForm.UniButton2Click(Sender: TObject);
begin
  DataSource1.DataSet.Locate('Company', 'Tora Tora Tora', [loCaseInsensitive]);
end;

It works ok. But if You have:

procedure TMainForm.UniButton2Click(Sender: TObject);
begin
  DataSource1.DataSet.Close;
  DataSource1.DataSet.Open;
  DataSource1.DataSet.Locate('Company', 'Tora Tora Tora', [loCaseInsensitive]);
end;

It doesn't work.
 
So like before we have to make something like OnAfterLoad assigment - which is wrong solution.
 
Could You help please ?

Link to comment
Share on other sites

Zilav - don't You think that this solution doesn't fit for RC release ? With all my 4 months UniGui love there is a lot of this kind of problems. Non working font control properties, non working locale settings, action updates, treeview expand methods, etc, etc.

 

From first view framework works ok, but in details there is a lot of undone work.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...