Jump to content

Lock picklist in dbgrid


Mike

Recommended Posts

Can you try this approach ?!:

 

FormReady:

procedure TMainForm.UniFormReady(Sender: TObject);
begin
  // for example colIndx = 8
  with UniDBGrid1 do
    JSInterface.JSCall('getEditor().setEditable', [False], Columns[8].JSColumn);
end;
Link to comment
Share on other sites

  • 3 months later...

Must correct. Should be not editable.

 

I have a second picklist column.

 

How can I set this also to not editable? Like below?

 

with UniDBGrid1 do
begin

    JSInterface.JSCall('getEditor().setEditable', [False], Columns[8].JSColumn);

    JSInterface.JSCall('getEditor().setEditable', [False], Columns[9].JSColumn);

 

end;

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