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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...