Hi,
I want to hide some columns at run time in ultra web grid and also i want to add one colun at run time.
how can i do this?
There is a column.hidden property, set it to true and the column will be hidden
To add a column, add a new column to the bands.column collection.
Hope this helps,
Ahmad
Hello,
Promosrus is right. If you want to add or hide columns run time, you can use the property UltraWebGrid1.Columns[int index].Hidden and method UltraWebGrid1.Columns.Add() of WebGrid in code-behind. Please take a look at the C# code below:
protected void ButtonHide_Click(object sender, EventArgs e)
{
UltraWebGrid1.Columns[int index].Hidden = true;
}
protected void ButtonAdd_Click(object sender, EventArgs e)
UltraWebGrid1.Columns.Add("SomeColumnName");
Hope this helps.