在radgridview中获取当前单元格的列名 [英] get column name of the current cell in a radgridview

查看:348
本文介绍了在radgridview中获取当前单元格的列名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!如何获取radgridview中当前单元格的列名?
RadGridView1是我的数据网格的名称.
这些不起作用:

 RadGridView1.CurrentCell.Column.ToString();
RadGridView1.CurrentCellInfo.Column.ToString();
RadGridView1.CurrentColumn.ToString(); 

解决方案

RadGridView1.CurrentCell.Column.Index;


这应该为您提供currentcells索引,否则,您应该在寻找一个为您提供列索引的属性.然后,您进入radgriview.colums [index]获取该列.

节点,这是一个假设,因为我不使用telerik控件,但似乎合乎逻辑.


 RadGridView1.CurrentCell.Column.UniqueName 


hi! how can i get the column name of the current cell in the radgridview?
RadGridView1 is the name of my datagrid.
these doesn''t work:

RadGridView1.CurrentCell.Column.ToString();
RadGridView1.CurrentCellInfo.Column.ToString();
RadGridView1.CurrentColumn.ToString();

解决方案

RadGridView1.CurrentCell.Column.Index;


This should give you the currentcells INDEX, if not you should be looking for a property that gives you a column index. From that you go to the radgriview.colums[index] to get the column.

Node this is an assumption as I do not use that telerik control but it seems logical.


RadGridView1.CurrentCell.Column.UniqueName


这篇关于在radgridview中获取当前单元格的列名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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