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... Quote 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. Quote 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 :-) Quote 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, Quote 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, Quote 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.