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.
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.
Krishna GaradPosted Aug 3, 2011, 5:26 AM
Dorababu MekaPosted Aug 3, 2011, 5:24 AM
if(!ispostback)
in page load event
Krishna GaradPosted Aug 3, 2011, 5:23 AM
CheckBox ch= (CheckBox)row.FindControl("cbRows");//this id
Smart LuckyPosted Aug 3, 2011, 5:19 AM
Null Reference Exception
Krishna GaradPosted Aug 3, 2011, 5:16 AM
Smart LuckyPosted Aug 3, 2011, 4:19 AM
Ali
I am trying in this way
Ali AlfarajPosted Aug 3, 2011, 4:13 AM
dataGridView1.Rows.Remove(dataGridView1.CurrentRow);
it should work
Ali