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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

is this a problem... 1
how do you do this? 2
datagrid question 3
not sure if i did this correctly... 2
datagrid question 2
datagrid property builder 2
datagrid delete question 3
datareader vs dataset 4

Back
Top