Jump to content

How to edit specific columns in Grid


alasoft

Recommended Posts

Hi everybody ..

 

Apologyze if this topic has been discussed before  .. but I didn' find it in the forum.

 

The question is:

 

How I enable/disable specific columns editing in TUniDbGrid (ie: I want the user can only edit columns 3 and 5, for example but NOT columns 1, 2 and 4)

 

Thanks everybody !

 

Rober

Link to comment
Share on other sites

  • 5 months later...

Columns[x].ReadOnly->True

it does not work when the call in the event DataSet.AfterScroll

procedure TfrmAct.qrySCAfterScroll(DataSet: TDataSet);
begin
  gridRes.Columns[0].ReadOnly:=not DataSet.FieldValues['Count']=0
end;

WebMode

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...