Monday 18 August 2014

To delete selected Row by Key Down in GridView



private sub Grid1_keyDown()
if e.keycode=keys.Delete then

For Each row as DataGridViewRow in Grid1.SelectedRows
Grid1.Rows.Remove(row)
Next

end if

No comments:

Post a Comment

Followers