Hi TMS support,
I have a column in my that show a text value. I want the user to absolutely use the "edEditBtn" to change the value. I don't want the user to be able to change the value with the keyboard.
I try to set column property ReadOnly = True, but it,s not working.
Is there a way to do this ?
I assume you refer to TAdvColumnGrid here?
If so, if you want the inplace editor part of the EditButton cell editor readonly you should implement OnGetEditorProp and set:
procedure TForm3.AdvColumnGrid1GetEditorProp(Sender: TObject; ACol,
ARow: Integer; AEditLink: TEditLink);
if acol = COLUMNINDEXWITHEDITBTN then
AdvColumnGrid1.BtnEdit.EditorEnabled := false;
Sorry I froget to tell you what I was refering. It's in a TDBAdvGrid.
My answer applies to TDBAdvGrid as well.
Thank you so much!!!
Sorry it was my fault, I was trying to apply your code to grid column instead of the grid.