delagoutte Posted November 25, 2016 Posted November 25, 2016 Hi, i have a unidbgrid with dgCheckSelect + multiselect for having a column with checkbox and set my selection. When i load data the checkbox for the current row is automatically checked. I don't want the current row automatically checked ? how to do this ? i don't dfind the option if it exist Quote
molla2005b Posted November 25, 2016 Posted November 25, 2016 hi use this codeprocedure TMainForm.UniDBGrid1AfterLoad(Sender: TUniDBGrid);var DBGridJSName: string;begin DBGridJSName := (Sender as TUniDBGrid).JSName; UniSession.AddJS('Ext.defer(function(){' + DBGridJSName + '.getSelectionModel().deselectAll(); ' + DBGridJSName + '.view.refresh()}, 20); ' );end;from Delphi Developerhttp://forums.unigui.com/index.php?/topic/7022-issue-with-gridselected/but your DBGrid will be refreshed twicewe need a DBGrid property to avoid this action Quote
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.