datagrid selected item

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

when you first load a page with a datagrid item on it, is the first record
always selected by default? if so, is there a way to have it where nothing is
selected by default?

thanks,
rodchar
 
Hi Rodchar,

Actually, nothing can be automatically selected in web datagrid. If you want
to select any item, you have to use EditCommandColumn/CommandColumn or other
means, such as checkbox in TemplateColumn.

HTH

Elton Wang
(e-mail address removed)
 
Hi,

no, it shouldn't be selected by default. SelectedIndex is -1 unless you
manually set it, or do a selection on the grid.
 
Back
Top