Topic: TABLE GRID READ ONLY

Hello DriveSoft

I have here another problem in table grid.  In my design in table grid I need to edit two columns only and the rest should be protected for not to be edited by a user. In the MVD software there is no option to protect a column, Please help me how to do it.


Thanks!

Post's attachments

Attachment icon gridLock.jpg 203.56 kb, 276 downloads since 2017-07-11 

Re: TABLE GRID READ ONLY

Hi Manixs
If you are using tablegrid editing, then you could try something like
procedure Form1_TableGrid1_OnChange (Sender: string);
begin
  form1.tablegrid1.columns[0].enabled := false;
  form1.tablegrid1.columns[1].enabled := false;
  form1.tablegrid1.columns[2].enabled := false;
end;      etc etc for which ever columns you want to protect.
If you are not using tablegrid editing and want to prevent access to a specific edit field, you can set the object property of that field to 'readonly'.
Derek.

Re: TABLE GRID READ ONLY

Wow Great! Thanks a lots....