现在我是这样做的:在属性/事件窗口点击DoubleClick后面的空白,自动生成事件方法:
private void gv_books_DoubleClick(object sender, System.EventArgs e)
{
}
但我需要从类型的事件对象e中获取有关DataGridView有关信息,e强制转换为DataGridViewCellMouseEventArgs类型后报错。
应该如何解决?
相关问题
- How do I bind a DataGridViewComboBoxColumn to a pr
- Filter Datagridview rows using TextBox
- Index was out of range. Must be non-negative and l
- datagridview combobox cell c#
- How to Stop DataGridView editing after checked cel
相关文章
- C# Winform 生成的两个DatagridViewTreeViewSelectColumn列该
- DataGridView - “Cell Selection Style” - Edit Cell
- DatagridView Not Displaying the error icon or erro
- Arrange Columns in a DataGridView
- How to disable creation of new rows in a DataGridV
- DataGridView / DataTable | rowState doesn't ch
- winforms Tooltip in winforms DataGridViewImageColu
- Drag and Drop Rows of Datagrid View Winform C#
e.ColumnIndex == 5 表示你点击的行的单元格数
如果是你想使用DataGridViewCellMouseEventArgs e,应该使用datagirdview的CellDoubleClick事件