infragistics ultragrid专栏 [英] infragistics ultragrid column

查看:88
本文介绍了infragistics ultragrid专栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





在ultragrid中有两列。



第一列样式复选框,第二列valuelist。



如何获得第一列的第二列值。

谢谢



there are two columns in ultragrid.

first column style checkbox,second valuelist.

How to get second column value where first column is checked.
thanks

推荐答案



您将使用ValueList从ultagrid获取值。



Hi,
you would use the ValueList to get the values from ultagrid.

ValueList vl = ultraGrid.DisplayLayout.ValueLists["secondColumnName"];
var item = vl.ValueListItems[0];





如果您想在CellChanged等事件中获取值,请使用事件参数,例如:



If you are trying to get the value during an event such as "CellChanged" then use the event argument, such as:

private void ultraGrid_CellChange(object sender, CellEventArgs e)
{
    if (e.Cell != null)
    {
    	if (e.Cell.Column.Key == firstColumnName)
    	{
            ValueList vl = ultraGrid.DisplayLayout.ValueLists["secondColumnName"];
            var item = vl.ValueListItems[0];
    	}
    }
}





我希望这会有所帮助。



问候

Jegan



I hope this helps.

Regards
Jegan


这篇关于infragistics ultragrid专栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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