I am developing a windows form application for a Books Store. In this application have a datagridview to select books for sale. If there are no items available in the stock I need to clear the current row values.So how can I do this. I tried this
dataGridView1.Rows.Clear();
But this clear entire datagridview. But I need to clear only current row when I click ok the message.