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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...