开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜