datagrid selected item

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
 
G

Guest

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)
 
T

Teemu Keiski

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top