Hi
I have used gridview and i add a button in earch row i want when i click on button that row will be deleted can any one tell me...?
Loading
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
Ali Alfaraj62 reputationPosted Aug 3, 2011, 12:13 AM EDT
dataGridView1.Rows.Remove(dataGridView1.CurrentRow);
it should work
Ali
Smart LuckyRank #2,625 · 531 reputationPosted Aug 3, 2011, 12:19 AM EDT
Ali
I am trying in this way
Krishna GaradRank #191 · 12.8K reputationPosted Aug 3, 2011, 1:16 AM EDT
Smart LuckyRank #2,625 · 531 reputationPosted Aug 3, 2011, 1:19 AM EDT
Null Reference Exception
Krishna GaradRank #191 · 12.8K reputationPosted Aug 3, 2011, 1:23 AM EDT
CheckBox ch= (CheckBox)row.FindControl("cbRows");//this id
Dorababu MekaRank #457 · 5.5K reputationPosted Aug 3, 2011, 1:24 AM EDT
if(!ispostback)
in page load event
Krishna GaradRank #191 · 12.8K reputationPosted Aug 3, 2011, 1:26 AM EDT