hi there,
your all ok i hope. Gat stuck been trying to add lines to my datagridview from various textboxes. just like you add an item to a shoping basket, but every time i click my button i only replace what i had already entered with what is in my textboxes.
any help below is the code i am using
}
DataTable dt = new DataTable();
dt.Columns.Add = ("DAY",typeof(string));
DataRow DR = dt.NewRow();
DR["Day"] = textbox1.Text.Tostring();
dt.Rows.Add(DR);
dataGridView1.Datasource=dt;
}
thanks
Loading


VulpesRank #55 · 29.2K reputationPosted Jul 29, 2011, 7:54 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 29, 2011, 1:35 AM EDT
Marvin kakuruRank #3,979 · 374 reputationPosted Jul 29, 2011, 7:11 AM EDT
kindly use my code to show me an how i can add rows and rebind.
thanks
Marvin kakuruRank #3,979 · 374 reputationPosted Jul 29, 2011, 9:54 PM EDT
kind regards