erich.wanker Posted April 12, 2016 Share Posted April 12, 2016 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 More sharing options...
bugra Posted April 12, 2016 Share Posted April 12, 2016 Hi You can only change thoose two options onCreate or onShow of Form. Link to comment Share on other sites More sharing options...
erich.wanker Posted April 12, 2016 Author Share Posted April 12, 2016 All Right .. ThanX :-) Link to comment Share on other sites More sharing options...
M477H13U Posted November 23, 2017 Share Posted November 23, 2017 Hello UNIGui developpers I would like to know if you had any workaround on changing *GridOptions* dynamically ? We would like to : Switch between [dgRowSelect, dgMultiSelect] AND [dgEditing] without breaking and re-creating the Grid. (Multiselection without editing and editing with cellSelection) 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 More sharing options...
Sherzod Posted November 24, 2017 Share Posted November 24, 2017 Hi, Can help you: http://forums.unigui.com/index.php?/topic/7951-runtime-enable-multiselect-not-woking-in-unidbgrid/&do=findComment&comment=40705 Best regards, Link to comment Share on other sites More sharing options...
Le Meur Guillaume Posted November 28, 2017 Share Posted November 28, 2017 hello, we need same functions, for several options (Grid Selection, Filter element etc ...) we did it by (saving property of the grid), destroying the grid and recreate it, with the new options. Not too bad Regards... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now