Remove the current row from datagridview

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • buterfly0707
    New Member
    • Nov 2009
    • 30

    Remove the current row from datagridview

    hi..

    i want to remove the current row in the data grid how can i do this. and i wants to write this in cell enter event.
    what i am doing here is in cell enter event in the data grid i am checking weather the the entered value is already there in the database. if it so i am clearing that entered value and wants to remove that row. here i don't knowhow to remove this row.

    i have used:

    dgvItem.Rows.Re moveAt(dgvItem. CurrentRow.Inde x);


    but this doent removing the row.
    thank you...
Working...