Jump to content

Recommended Posts

Posted
On 12/8/2018 at 11:02 PM, cristian said:

I need to do it in run time.

in onafterload (tunidbgrid) not work.

Hi,

Do you want this action for all columns simultaneously, or just for a specific column ?

Posted
On 12/13/2018 at 2:44 AM, cristian said:

Hi 

I just need to disable this feature to all column.

Hi,

One possible solution:

type
  TExUniCustomDBGrid = class (TUniCustomDBGrid)

  end;
procedure TMainForm.UniButton1Click(Sender: TObject);
var
  I: Integer;
begin
  for I := 0 to UniDBGrid1.Columns.Count-1 do
    UniDBGrid1.Columns[I].Menu.MenuEnabled := False;

  TExUniCustomDBGrid(UniDBGrid1).DoConfigureJSColumns(UniDBGrid1.DataSource.DataSet);
end;

 

Posted
22 hours ago, Sherzod said:

Hi,

One possible solution:


type
  TExUniCustomDBGrid = class (TUniCustomDBGrid)

  end;

procedure TMainForm.UniButton1Click(Sender: TObject);
var
  I: Integer;
begin
  for I := 0 to UniDBGrid1.Columns.Count-1 do
    UniDBGrid1.Columns[I].Menu.MenuEnabled := False;

  TExUniCustomDBGrid(UniDBGrid1).DoConfigureJSColumns(UniDBGrid1.DataSource.DataSet);
end;

 

Perfect!

Tnks so much again

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