show or hide nested table views RadGrid SP1 Q1 2009
protected void ShowOrHideNestedTableView()
{
foreach (GridDataItem CS in rgABC.Items)
{
if (CS.OwnerTableView.Name == "AAA")
{
if (cb123.Checked)
{
CS.Parent.Visible = true;
CS.Visible = true;
}
else
{
CS.Parent.Visible = false;
CS.Visible = false;
}
}
}
}
protected void rgScheduleList_PreRender(object sender, EventArgs e)
{
ShowOrHideNestedTableView();
}
No comments:
Post a Comment