标题: GroupField隐藏的问题 [打印本页] 作者: tstwt8215655 时间: 2016-8-5 14:48 标题: GroupField隐藏的问题 我在后台谢了一个这个代码,依然不能吧GroupField隐藏
foreach (Control c in Grid1.Controls)
{
//if (c is FineUI.BoundField)
//{
// (c as FineUI.BoundField).Hidden = true;
//}
if (c is FineUI.GridColumn)
{
(c as FineUI.GridColumn).Hidden=true;
}
}
还有这个也没用
foreach (Control c in Grid1.Controls)
{
if (c is FineUI.BoundField)
{
(c as FineUI.BoundField).Hidden = true;
}
else if (c is FineUI.GroupField)
{
(c as FineUI.GroupField).Hidden=true;
}
}作者: tstwt8215655 时间: 2016-8-5 14:48 标题: GroupField 我在后台谢了一个这个代码,依然不能吧GroupField隐藏
foreach (Control c in Grid1.Controls)
{
//if (c is FineUI.BoundField)
//{
// (c as FineUI.BoundField).Hidden = true;
//}
if (c is FineUI.GridColumn)
{
(c as FineUI.GridColumn).Hidden=true;
}
}
还有这个也没用
foreach (Control c in Grid1.Controls)
{
if (c is FineUI.BoundField)
{
(c as FineUI.BoundField).Hidden = true;
}
else if (c is FineUI.GroupField)
{
(c as FineUI.GroupField).Hidden=true;
}
}