We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Selecting row programmatically in GGC

How can I select a row in a GGC when I change the current record using SetCurrent() method or using TableControl.CurrentCell.MoveTo(..) in the grid? Thanks in advance

3 Replies

AD Administrator Syncfusion Team February 16, 2005 07:52 AM

In 3.0.1.0, try setting these properties to see if this does what you want. this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One; this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.None;


JE Jose Egea February 16, 2005 08:10 AM

Thanks Clay, but it doesn''t work and I''m using 3.0.1.0 version. It works with mouse clicks and arrow cursors, but not programmatically with record.SetCurrent(). Using this method selected line stays in the same position while triangle header changes to the new current record. Any suggestions?


AD Administrator Syncfusion Team February 16, 2005 10:48 AM

When you call record.SetCurrent, also try calling record.SetSelected(true).

Loader.
Live Chat Icon For mobile
Up arrow icon