C# Typed Datasets and Datagridview
I've not used typed datasets before ....
I hav开发者_如何学运维e a dataset and I want to add a row.
I tried this:
DataRow dr = dataGridView_Checks.NewRow(); dt.Rows.Add(dr);
Says it cannot resolve symbol NewRow.
How do I add a row to dataGridView_Checks so that it updates my dataset?
Also, how do I access the instantiated dataset? I didn't create it but I can add and and delete items to it at runtime.
Thanks as always.
I don't think DataSet does have a NewRow method. Did you tried DataTable.NewRow Method?
精彩评论