I was trying to get the data item in SelectedIndexChanged. Here is what I have:
where Customer is my data type for data binding. The item object in the above codes is null. Please help. Thanks,
Peichung
protected void Grid1_SelectedIndexChanged(object sender, System.EventArgs e) |
{ |
GridItem item = Grid1.SelectedItems[0] as GridItem; |
Customer cust = item.DataItem as Customer; |
} |
where Customer is my data type for data binding. The item object in the above codes is null. Please help. Thanks,
Peichung