Setting selected row

I have a GDBG with ListBoxSelectionMode = SelectionMode.One I want to set the selected row at initialisation. How i do that ? I looked at grid.Selections but could not find how. I found how to get it, but not to set it.

1 Reply

SG Steve Gauthier January 12, 2005 04:09 PM UTC

I found out how to do it. this.mygrid.Selections.SelectRange(GridRangeInfo.Row(indexRow), true); I missed the .Row thing... Thanks anyway. >I have a GDBG with ListBoxSelectionMode = SelectionMode.One > >I want to set the selected row at initialisation. >How i do that ? > >I looked at grid.Selections but could not find how. I found how to get it, but not to set it. >

Loader.
Up arrow icon