如何获取datagrid中所选列的列标题名称或列索引 [英] how to get the column header name or column index of a selected column in datagrid

查看:86
本文介绍了如何获取datagrid中所选列的列标题名称或列索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在Visual Studio 2008中开发Web应用程序,遇到一个问题,即我无法获取所选单元格的列索引.
不存在诸如CurrentCell或SelectedCell的属性.
请在这方面为我提供帮助.

Hi ,

I am working on a web application in visual studio 2008 and have come accross a problem, where I am not able to get the column index of the selected cell.
The properties like CurrentCell or SelectedCell are not present.
Kindly assist me in this regard.

推荐答案

^ ]链接今天已断开?

简单的家伙,尽管这太简单了,但Google却是所有问题的最佳发现者.
Is google[^] link is broken today?

Simple dude, Google is the best finder for any kind of question although this is too simple.


嗨..


请尝试这个

http://www.dotnetspider.com/resources/43689-How- create-check-box-column-datagridview.aspx [ ^ ]
Hi..


please try this

http://www.dotnetspider.com/resources/43689-How-create-check-box-column-datagridview.aspx[^]


这篇关于如何获取datagrid中所选列的列标题名称或列索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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