Jump to content

Change uniDbgrid.Options at runtime


erich.wanker

Recommended Posts

Hello,

i want to change grid.Options at runtime:  (switch between field-edit-mode and Rowselect mode)

 

I Use:

 

grid.Options := grid.Options - [dgRowSelect];
grid.Options := grid.Options + [dgEditing];
 
.. but doen´t work...
i allways get after this an Error:

 

Could not set cell position: row: [0], column:[0] :Cannot read property 'dataSource' of undefined

 

grid.DataSource:=data;
grid.Refresh;
 
.. i tryed out to set Datasource again .. but didnt´work...
 
 
Link to comment
Share on other sites

  • 1 year later...

Hello UNIGui developpers  :D

 

I would like to know if you had any workaround on changing *GridOptions* dynamically ?

We would like to :

  1. Switch between [dgRowSelect, dgMultiSelect] AND [dgEditing] without breaking and re-creating the Grid. (Multiselection without editing and editing with cellSelection)
  2. Switch between DBGrid.Columns.Filtering.enable := True AND DBGrid.Columns.Filtering.enable := False without breaking and re-creating the Grid.

Best regards,

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