Can any1 help me on this.
I have attached the image aslo.


Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Priya LingePosted Sep 26, 2011, 2:26 AM
Please check below link.
http://www.c-sharpcorner.com/UploadFile/dpatra/SelectAllCheckBoxInDataGridAndDeleteRowsInSilverlight311282009231725PM/SelectAllCheckBoxInDataGridAndDeleteRowsInSilverlight3.aspx
Hope this will help you.
Thanks.
Pravin MorePosted Sep 23, 2011, 9:18 AM
i will recommend you 2 solutions for this......
1] as you mentioned you filling DataGrid from database means you are using some Generic List
so i will suggest u that when u r getting data from database get one more column of rownumber but hide it while showing it on DataGrid........so when u click delete use listobj.RemoveAt(i) function pass row numbers for i..........so it will affect to your datagrid.........
2] another solution is.......your image showing that there is column Employment status ID........
so on delete button click event you can get Employment status ID's of chked rows......make 1 method that will give you data from database without including data of these Employment status ID's.................
but i will recommend you 1st option and hope it will work for you......
Thank You,
Pravin.