Click here to Skip to main content
15,886,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have from form with dataGridView1 and delete button
and I have this code for delete a row, how can make this delete saved to the database ?? I filled the dataGridView1 with dataset.



C#
if (dataGridView1.Rows.Count > 0)
{
    if (dataGridView1.Rows[dataGridView1.CurrentRow.Index].IsNewRow != true)
    {
        dataGridView1.Rows.Remove(dataGridView1.CurrentRow);



    }
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900