比如
private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
要怎么样才能项delphi那样使用sender,例如TdataGridView(sender)这种样子呢?这样就可以吧代码复制到日他地方,不用修改了。
大哥们能教教小弟么
private void dataGridView1_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e)
要怎么样才能项delphi那样使用sender,例如TdataGridView(sender)这种样子呢?这样就可以吧代码复制到日他地方,不用修改了。
大哥们能教教小弟么
解决方案 »
- [C#] 怎么禁用guest账户?
- Asp.net文件监视
- c# winform 打包 繁體或英文的問題?
- vs2008无法打开csproj文件
- 怎样在WPF运动的3D物体表面上贴上2D内容?
- 如何生成主菜单
- DataGrid如何在页眉中插入背景图片 (跳楼等)
- 关于winform的DataGrid的几个问题想请教大家!
- sql查询多层嵌套如何简化??
- 求教一数学算法!(曲线峰值)!急用。。
- WM_NCHITTEST的共存问题
- C# Winform DataGridView分页,不利用VS2008的BindingNavigator控件,自己设置按钮前一页,后一页,每页显示条数等按钮,该如何实现
查找替换
DataGridViewCell dtvc = sender as DataGridViewCell;