日期:2014-05-18  浏览次数:20376 次

UltraWebGrid脚本问题,会的来!分数多多!!!!!!
我要在js脚本中设置某列隐藏或显示.
简单吧???可是我不会....

注意:
我已写了这句代码ultrGrid.Bands[0].Columns[1].Hidden = true,
没效果... 麻烦各位多多出力!兄弟谢过先!

------解决方案--------------------
protected void ultrGrid_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Header)
{
e.Row.Cells[0].Attributes.Add("style", "display:none");
}
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Cells[0].Attributes.Add("style", "display:none");
}
}

------解决方案--------------------
haha..楼上的牛。。。

lz要在js里实现??
ultrGrid.Bands[0].Columns[1].Hidden = true, 怎么看也不像js阿。。。