当前位置: 代码迷 >> ASP.NET >> UltraWebGrid脚本有关问题,会的来!分数多多!
  详细解决方案

UltraWebGrid脚本有关问题,会的来!分数多多!

热度:2047   发布时间:2013-02-25 00:00:00.0
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阿。。。