开发者

C# Typed Datasets and Datagridview

开发者 https://www.devze.com 2023-02-23 00:38 出处:网络
I\'ve not used typed datasets before .... I hav开发者_如何学运维e a dataset and I want to add a row.

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

精彩评论

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

关注公众号