Use either of two flavors of .Remove:
1. Remove by index; get the selected index of the GridView with GridView.SelectedIndex and pass that index to List.Remove(int index).
2. Remove by reference; you can get the selected object in the gridview since you're binding directly, and pass that to List.Remove<Alert>(Alert object).
Main Topics
Browse All Topics





by: DreamMasterPosted on 2008-09-02 at 03:51:58ID: 22365917
As far as I know you can do that using remove..
t/ Understa nding_Gene rics%E2%80 %94Examini ng_the_Lis t(T)_Type
For more information, check this page.
http://en.csharp-online.ne
Regards,
Max.