can any1 plz help me out [:D]
Hi,
The columns can be made visible and invisible during runtime. The following block of code shows an example:
protected
void UltraWebGrid1_Click(object sender, ClickEventArgs e)
{
if (e.Cell.Column.BaseColumnName == "OrderID")
e.Cell.Column.Hidden =
true;
}
else if (e.Cell.Column.BaseColumnName == "ProductID")
this.UltraWebGrid1.Bands[0].Columns.FromKey("ProductID").Hidden = true;
this.UltraWebGrid1.Bands[0].Columns.FromKey("OrderID").Hidden = false;
Here the click event of the WebGrid is handled. If you have button columns, then you can handle the ClickCellButton event and control the visibility of the columns there. To add the event handlers for the grid, in the design view open the properties window and click on the events button and then browse through the events. When you double click on any of the event names, it creates the handler in the code behind.
Hope this helps.
Thanks
Thx a ton !!! It worked [:D]