当前位置:网站首页>C# 36. DataGridView line number
C# 36. DataGridView line number
2022-06-12 11:25:00 【lljss2020】
1. Select a row to trigger an event
private System.Windows.Forms.DataGridView dataGridView1;
private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
int index = e.RowIndex; //0,1,2.... 0xffffffff: When empty
}
2. Get the row number of the cell directly
int index = dataGridView1.CurrentCell.RowIndex;
边栏推荐
- Distributed storage exploration
- 信号继电器RXSF1-RK271018DC110V
- Les humains veulent de l'argent, du pouvoir, de la beauté, de l'immortalité, du bonheur... Mais les tortues ne veulent être qu'une tortue.
- Clj3-100alh30 residual current relay
- MySQL锁查漏补缺
- 进程的创建和回收
- Grid layout
- AcWing 128. Editor (to effectively modify the specified position in the top stack)
- 套接字编程TCP篇
- Heavyweight proxy cache server squid
猜你喜欢
随机推荐
AcWing 1912. Odometer (enumeration)
Golang Foundation (6)
Redis keys in PHP
Zabbix 监控之LLD
你需要社交媒体二维码的21个理由
Heavyweight proxy cache server squid
systemctl里万恶的203
【clickhouse专栏】基础数据类型说明
套接字编程TCP篇
scanf返回值被忽略的原因及其解决方法
go基于阿里云实现发送短信
AcWing 132. Group queue (queue simulation question)
C# 36. DataGridView行号
M-Arch(番外11)GD32L233评测-PWM驱动有源蜂鸣器
^33 variable promotion and function promotion interview questions
C# 35. 选择默认网卡
DS18B20 digital thermometer (I) electrical characteristics, power supply and wiring mode
k53.第二章 基于二进制包安装kubernetes v1.22 --集群部署
Unity connect to Microsoft SQLSERVER database
Module 8 job








