如何在vb.net中的gridview中获取rowindex [英] How to get rowindex in gridview in vb.net

查看:179
本文介绍了如何在vb.net中的gridview中获取rowindex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我想在vb.net..plz的gridview中获取当前行的rowindex帮助我..

解决方案

这只是一个快速的答案,而不是写大量的文章!



让我们说在GridView的CLICK事件中你有参数说e为BLAH BLAH

所以,如果你这样写,那么你可以获得行索引



e.RowIndex

e.ColumnIndex(for列索引)。


通过查看该课程的文档 [ ^ ]。

hello,
I want to get rowindex of current row in gridview in vb.net..plz help me..

解决方案

This is just a quick answer without writing massive essay!

Let''s say in GridView''s CLICK Event you have parameter saying e as BLAH BLAH
so if you write like following then you can get row Index

e.RowIndex
e.ColumnIndex (for column Index).


You can easily find the answers to such questions by looking at the documentation for the class[^].


这篇关于如何在vb.net中的gridview中获取rowindex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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