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.

Midhun TpRank #388 · 6.5K reputationPosted Sep 27, 2016, 3:54 AM EDT
GowthamRank #2,485 · 565 reputationPosted Sep 29, 2016, 3:58 AM EDT
GowthamRank #2,485 · 565 reputationPosted Sep 27, 2016, 4:05 AM EDT
GowthamRank #2,485 · 565 reputationPosted Sep 27, 2016, 4:42 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Sep 27, 2016, 5:25 AM EDT
You can pass 0 instead of e.RowIndex in the code to clear 0th row.
GowthamRank #2,485 · 565 reputationPosted Sep 27, 2016, 5:41 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts