De-select row in GDBG

Hi, I''ve bound a DataTable to a GDBG. When data is loaded for the first time, the first datarow (a multirow record) is preselected by default. Can I specify a property so that this DOESN''T happen? Please advise. Thanks, Atith

3 Replies

AP Atith Pagdi September 15, 2005 07:45 AM UTC

Can anyone reply to this query?? Thanks, Atith


AD Administrator Syncfusion Team September 15, 2005 11:05 AM UTC

Hi Atith, GridDataBoundGrid will have only one cell in focus when loaded first time. If you have set ListBoxSelectionMode to SelectionMode.One you will have the first row selected. If you wish to move the current cell and the selections. Try this code below this.gridDataBoundGrid1.CurrentCell.MoveTo(-1,-1); this.gridDataBoundGrid1.Selections.Clear(); Best regards, Stanley


AP Atith Pagdi September 19, 2005 11:13 AM UTC

Thanks! That worked!

Loader.
Up arrow icon