I have a DataGridView binded to a DataTable (DataTable binded to database). I need to add a DataRow to the DataTable
DataGridView
DataTable
DataRow
You can try with this code - based on Rows.Add method
Rows.Add method
DataTable table = new DataTable(); DataRow row = table.NewRow(); table.Rows.Add(row);
Link : https://msdn.microsoft.com/en-us/library/9yfsd47w.aspx