如何在datagridview中设置一系列单元格的开始或结束行 [英] How to set the start or end row for a range of cells in datagridview

查看:74
本文介绍了如何在datagridview中设置一系列单元格的开始或结束行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VB6中,在线下使用FlexGrid运行得非常好

In VB6,using FlexGrid below line runs perfectly well

Selrow = USERGrid.TextMatrix(USERGrid.RowSel, 2)





但是在我将这个项目转换为Vb.net之后,这条线给了我错误..

我已将flexgrid更改为简单的datagridview.Above行转换如下所示:



But after I convert this project to Vb.net,this lines gives me error..
I have changed flexgrid to simple datagridview.Above line is converted as shown below:

Selrow = USERGrid.get_TextMatrix(USERGrid.RowSel, 2)





datagridview中RowSel的等价物???

提前完成。



What is the equivalent of RowSel in datagridview???
Thanx in advance.

推荐答案

首先,阅读 DataGridView [ ^ ]及其成员 [ ^ ],如: CurrentCell [ ^ ], CurrentRow [ ^ ], SelectedCells [ ^ ]和其他人。
First of all, read about DataGridView[^] and its members[^], like: CurrentCell[^], CurrentRow[^], SelectedCells[^] and others.


这篇关于如何在datagridview中设置一系列单元格的开始或结束行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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