EhLib.Com
https://forum.ehlib.com/en/

Problems with cellbutton control
https://forum.ehlib.com/en/viewtopic.php?f=5&t=1200
Page 1 of 1

Author:  jianwt [ 09 Feb 2023, 01:15 ]
Post subject:  Problems with cellbutton control

Can you control cellbuttons to show and hide in some rows according to conditions, not the whole column。
if (MemTableEh_Detail.FieldByName('AA').AsString = 'BB') then
begin
DBGridEh2.Columns[8].CellButtons[0].Visible:=true;
end else
begin
DBGridEh2.Columns[8].CellButtons[0].Visible:=false;
end;

Author:  EhLibSupport [ 25 Feb 2023, 03:50 ]
Post subject:  Re: Problems with cellbutton control

Hello

Unfortunately, there is no way to hide the edit button for certain records in the grid.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/