使用CSharp在Windows应用程序中使用DataGridView [英] DataGridView in windows application using CSharp

查看:216
本文介绍了使用CSharp在Windows应用程序中使用DataGridView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用按键在数据网格View中进行操作。

我写下以下代码是正确的。

  private   void  datagridView_KeyPress( object  sender,DataGridViewKeyPressEventArgs e)
{


}



以上代码是正确的。

if这是正确的。如果没有,请发送datagridview keypress的代码。

解决方案

如果正确可以。如果没有请发送代码

为什么不亲自尝试?一个简单的例子会告诉你自己没关系。



以防万一,如果需要,以下内容将有所帮助:捕获DataGridView Cell的KeyPress事件 [ ^ ]

How to use Key press in Data Grid View.how to do.
I write the below code it is correct.

private void datagridView_KeyPress(object sender, DataGridViewKeyPressEventArgs e)
       {
         

       }


the above code is correct.
if it is correct ok. if not please send the code for the datagridview keypress.

解决方案

if it is correct ok. if not please send the code
Why not try out by yourself? A quick example will tell you yourself that it is OK.

Just in case, if needed, following will help: Capture the KeyPress event of DataGridView Cell[^]


这篇关于使用CSharp在Windows应用程序中使用DataGridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆