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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin MoreRank #1,419 · 1.2K reputationPosted Sep 23, 2011, 5:18 AM EDT
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.
Priya LingeRank #785 · 2.9K reputationPosted Sep 25, 2011, 10:26 PM EDT
Please check below link.
http://www.c-sharpcorner.com/UploadFile/dpatra/SelectAllCheckBoxInDataGridAndDeleteRowsInSilverlight311282009231725PM/SelectAllCheckBoxInDataGridAndDeleteRowsInSilverlight3.aspx
Hope this will help you.
Thanks.