| |||||||||||||||
DataGrid.SelectedIndex PropertySystem.Web.UI.WebControls Namespace DataGrid Class Sets or retrieves the index of the selected item in the DataGrid control. Syntax
This property can only be used programmatically; it cannot be set when declaring the control. Property Value
The property is read/write with no default value. Exceptions
RemarksUse the SelectedIndex property to determine the index of the item selected by the user in the DataGrid control. You can also use this property to programmatically specify which item is selected in the DataGrid control. To deselect an item in the DataGrid control, set this property to -1. ExampleThe following example demonstrates how to use the SelectedIndex property to determine the index number of the selected item in the DataGrid control.
See Also |
| ||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme