【发布时间】:2015-08-22 16:56:30
【问题描述】:
I have a gridview which is bounded with a combobox and when an item in the combobox is selected the gridview shows the data.
我想知道 gridview 中 2 个标签中的男性和女性数量,但我找不到好的解决方案,请给我提示或代码?
【问题讨论】:
-
请提供您目前拥有的相关代码,并告诉我们您遇到的问题。
-
@DeanOC:我刚刚发布了代码,请通过..
-
da1.Fill(ds).ToString()是做什么的? -
在
da1.Fill(ds)之后绑定dataGridView1.DataSource。 -
@AmitKumarGhosh 当我从最后一行删除 Fill(ds) 部分时,它在标签“syste.data.oledb.oledbdataadaptor”中显示以下内容
标签: c# winforms datagridview