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 12:52 PM UTC

In, 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 01:10 PM UTC

Thanks Clay, but it doesn''t work and I''m using 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 03:48 PM UTC

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

Live Chat Icon For mobile
Up arrow icon