hi there,

how can i delete or clear the values of the datagridview row, when the datagridview row index is known. how can i do this in C#????


thanxxxxxxxx

You can remove a row like this:

dataGridView1.Rows.RemoveAt([B]rowIndex[/B]);

Thanks

You can remove a row like this:

dataGridView1.Rows.RemoveAt([B]rowIndex[/B]);

Thanks

hey this removes the row from the datagrid view. how can i clear the values of each datagrid view cell in the datagrid view.
thanxxxxxxxxx

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.