My webgrid binds with a hierarchical dataset. I wish to have a button in the column header of the child-band. I tried two approaches, both of them failed though
Approach 1: At design time.
Through quick-design, i made a templated-colum. Through edit template, i added a button in the column header section.
This works for columns at band=0 but fails for columns at band=1.
Approach 2: At run time.(through code-behind)
Infragistics.WebUI.UltraWebGrid.TemplatedColumn tc = new Infragistics.WebUI.UltraWebGrid.TemplatedColumn(true); tc = ((Infragistics.WebUI.UltraWebGrid.TemplatedColumn)e.Layout.Bands[1].Columns.FromKey("STATUS")); tc.HeaderItem.Visible = true; tc.HeaderItem.Controls.Add(new Button());
Well, both approaches work when it is done for band '0', but the button doesn't display when its done for column in band '1'.
Please help....