使用VB.Net,我有一个DataGridView与组合框列。用户在ComboBox中更改选区时甚至可以使用该选项?然后进行测试 -DataGridView&ComboBox事件?
1
A
回答
1
在Grid.Item.FormatedValue,而不是价值
0
.FormatedValue为当前单元格在您关注的列中。
+0
这是一条评论或答案?如果只是评论,请考虑编辑您的答案。 – 2011-06-26 18:59:37
2
您可以在此事件,当组合框的值已被选定...
Private Sub dataGridView_EditingControlShowing(ByVal sender As Object, ByVal e As DataGridViewEditingControlShowingEventArgs)
Try
If (Me.dataGridView.CurrentCell.ColumnIndex = CType(Column.Col,Integer)) Then
Dim comboBox As ComboBox = CType(e.Control,ComboBox)
If (Not (comboBox) Is Nothing) Then
AddHandler comboBox.SelectedIndexChanged, AddressOf Me.ComboBoxIndexChanged
End If
End If
Return
Catch Ex As Exception
Utils.ErrMsg(Ex.Message)
Return
End Try
End Sub
0
CurrentCellDirtyStateChanged SelectedValueChanged
相关问题
- 1. C#/ Winforms,DataGridView/Combobox
- 2. vb.net/DataGridView/ComboBox列?
- 3. Vb.net/DataGridView/ComboBox列
- 4. DataGridView - ComboBox @ runtime
- 5. DataGridView和Combobox列?
- 6. ComboBox onChange事件
- 7. DataGridView和ComboBox问题
- 8. Datagridview combobox列的值
- 9. datagridview中的combobox列
- 10. Datagridview Cellclick事件
- 11. DataGridView事件
- 12. DataGridView中的外键Combobox
- 13. DataGridView ComboBox列动态项目
- 14. C#DataGridView combobox add data programaticaly
- 15. DataGridView和CellEndEdit事件
- 16. DataGridView的CellClick事件
- 17. Excel ActiveX ComboBox onClick事件
- 18. php&js combobox触发事件
- 19. 未提高Combobox INotifyPropertyChanged事件!
- 20. ComboBox SelectionChanged事件火灾晚
- 21. DataGridView复选框事件
- 22. DataGridView不通过事件
- 23. datagridview取消选择事件
- 24. 的DataGridView行更新事件
- 25. CellValueChanged与CellValidating DataGridView的事件
- 26. DataGridView滚动事件(和ScrollEventType.EndScroll)
- 27. BeginPrint事件和dataGridView问题
- 28. 寻找事件的DataGridView
- 29. C#的DataGridView - 从CellEndEdit事件
- 30. DataGridView ComboBox在焦点时不保存
另请考虑填写您的个人资料,以便我们可以给您打电话给除“未知”以外的内容。您的个人资料在这里:http://stackoverflow.com/users/198155/unknown-google – 2009-11-16 05:29:48