SelectedIndexSelectedIndex based on the data to be
bound to the data Web control. Specifically, this example looks at auto-selecting the article with the most
visits... (Note that only 10 rows are retrieved, and that they are ordered randomly using NEWID(). For more
information on returning a random subset of rows with NEWID() be sure to read Returning
Data in Random Order with NEWID(). Be sure to refresh to see the effect...)
|
Article: MouseOver Coloring for a DataGrid Views: 16726 |
|
Article: Retain Scrollback Position After Postback in DataGrid Views: 6464 |
|
Article: Hierarchical Data Binding in ASP.NET Views: 9422 |
|
Article: Common DataGrid Mistakes Views: 18940 |
|
Article: Transferring the Datagrid Data Between Web Forms Views: 5552 |
|
Article: Summarizing Data with ROLLUP Views: 7893 |
|
Article: Displaying Records in a DataGrid in Random Order Views: 6477 |
|
Article: Adding a New Record to the DataGrid in the Footer Views: 12733 |
|
Article: Creating Custom Columns for the ASP.NET Datagrid Views: 14696 |
|
Article: Deciding When to Use the DataGrid, DataList or Repeater Views: 7298 |
Source Code
|
[Return to the FAQ...]