请教一个WinForm里的DataGrid的问题,希望有经验的人解答一下,多谢 (WinForm)DataGrid里的ReadOnly为False时,怎么才能知道处于编辑状态的是第几行第几列? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果想知道dataGrid是否是编辑状态,有没办法? DataGridTextBoxColumn SelectedBox=(DataGridTextBoxColumn)Dbgrid.TableStyles[0].GridColumnStyles[2];//假设是第3列需要此功能SelectedBox.TextBox.KeyPress+=new System.Windows.Forms.KeyPressEventHandler(this.cell_KeyPress);private void cell_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e){ datagrid.CurrentCell.RowNumber; datagrid.CurrentCell.ColumnNumber;//这样就可以知道是哪个单元格处于编辑状态了} Office文件格式识别问题? 如何从数据库中模糊查询,获得我要的值 有没有办法获取带有JSP代码段的网页源码? 这个语句称为什么语句啊? 问个关于给分的问题 如何设置C#TextBox只能输入4-6个字符 form窗体 WebBrowser显示网页内容拖动的问题 C#采用线程监听socket连接出现界面卡死 在安装程序中怎样可以自动的装上21MB的框架 求串口通讯代码(200分) 100分求c#.net下水晶报表与数据集连接代码(分不够另开贴加)
SelectedBox.TextBox.KeyPress+=new System.Windows.Forms.KeyPressEventHandler(this.cell_KeyPress);private void cell_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
datagrid.CurrentCell.RowNumber;
datagrid.CurrentCell.ColumnNumber;//这样就可以知道是哪个单元格处于编辑状态了
}