如何在Windows应用程序的datagridview中为行添加click事件 [英] How to add click event for a row in a datagridview in windows application

查看:81
本文介绍了如何在Windows应用程序的datagridview中为行添加click事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我如何在datagridview中为一行写clickevent。我正在使用数据库sqlite。

can anyone tell me how to write clickevent for a row in a datagridview. i am using database sqlite.

推荐答案

在datagrid属性窗口中选择CellClick,VS将为此事件添加一个新的事件处理程序。



看看这个样本:



DataGridView.CellClick事件
On datagrid properties window select CellClick, VS will add a new event handler for this event.

Look at this sample:

DataGridView.CellClick Event


这篇关于如何在Windows应用程序的datagridview中为行添加click事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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