积极答复者
Winform DataGridView的问题

问题
答案
-
DataGridViewRow.DataBoundItem
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 Jing0Moderator 2010年5月22日 9:00
-
- 已标记为答案 Jing0Moderator 2010年5月22日 9:00
-
datagridview 绑定到datatable,如果进行排序的操作, 你可以看到 datatable.defaultview.sort 属性也在变,绑定的datagridview 排序是通过对数据源的操作来实现排序的。
如果你要获取当前的行,你也可以通过dt01.DefaultView[dataGridView1.CurrentCell.RowIndex] 来获得。
通过 dt01.DefaultView[dataGridView1.CurrentCell.RowIndex]["Name"] 可以获取datatable对应行里面的 某个元素的值。
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.- 已标记为答案 Jing0Moderator 2010年5月22日 9:00
全部回复
-
DataGridViewRow.DataBoundItem
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
Visual C++ MVP- 已标记为答案 Jing0Moderator 2010年5月22日 9:00
-
- 已标记为答案 Jing0Moderator 2010年5月22日 9:00
-
datagridview 绑定到datatable,如果进行排序的操作, 你可以看到 datatable.defaultview.sort 属性也在变,绑定的datagridview 排序是通过对数据源的操作来实现排序的。
如果你要获取当前的行,你也可以通过dt01.DefaultView[dataGridView1.CurrentCell.RowIndex] 来获得。
通过 dt01.DefaultView[dataGridView1.CurrentCell.RowIndex]["Name"] 可以获取datatable对应行里面的 某个元素的值。
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.- 已标记为答案 Jing0Moderator 2010年5月22日 9:00