Gowtham

Gowtham

  • NA
  • 516
  • 38.4k

Grid view clearing the 0 the row instead of deleting

Sep 27 2016 7:18 AM
hi,
I was working with grid view concepts
 
My requirement is to clear specific row by clicking on clear button on column index 6.
But for row index 0 when I click on clear button on column index 6.entire 0th row cells record
should be cleared.It is not deleting 0th row only removing the records in 0th row.
 
So for ,I have manged to clear all the rows in grid view by clicking on column index 6
 
if (VendorGridView.CurrentCell.ColumnIndex == 6)
{
VendorGridView.Rows.RemoveAt(e.RowIndex);
}
 
But for 0th row in grid i have to clear the record or set cell to empty for entire row by clicking on column index 6.

Answers (6)