I m making a table at run tme I m adding some row at runt time. I stored that table in a session.
Session["MyTable"]
I want to delete a record from that table n again into a DataGrid
I m making a table at run tme I m adding some row at runt time. I stored that table in a session.
Session["MyTable"]
I want to delete a record from that table n again into a DataGrid
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 attend4days leftRegister
Mahesh ChandRank #1 · 393.4K reputationPosted May 13, 2008, 7:28 AM EDT
You first need to convert Session object into a DataTable and then find that row you want to delete and delete it using Rows.Delete method. After that, you bind your new DataTable back to the DataGrid and it should reflect the changes. Hope your DataTable stored in Session does not have too much data (not more than 100 rows) in it.
You will probably have to call a SP to delete that row from database also.