Jump to content

Selected column in UniDBGrid


artem_niko

Recommended Posts

Hello!

Need get field name of selected column in UniDBGrid at just moment, uses mouse.

I mean, for example, in UniDBGrid exist Column='MyField' and when I making double click colomn, I must get name of select column.

May be, exist something property as UniDBGrid.SelectedField (as in DBGridEh, from Ehlib components).

Is it possible?

 

Link to comment
Share on other sites

6 minutes ago, Артем said:

I need get field name of column when click (or double click) in cell of column. 

Well, for example like this:

procedure TMainForm.UniDBGrid1DblClick(Sender: TObject);
begin
  ShowMessage(UniDBGrid1.Columns[UniDBGrid1.CurrCol].FieldName);
end;

 

  • Like 1
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...