Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
94
Column header to cells and set colspan
posted

I have to merge only my column headers(not the column values).

In which method I need to write the merging.

I am able to implement the same in .Net gridView, but i couldnt using infragistics wedgrid.

Here is the .Net gridview code. Please help me to convert the same functionality using Infragistics.

protected void grdView1_OnRowCreated(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)

{

if (e.Row.RowType == DataControlRowType.Header)

{

TableCell cl =
new TableCell();

cl.ColumnSpan = e.Row.Cells.Count;

e.Row.Cells.Clear();

cl.Text =
"Topline Summary by Week - " + Label3.Text.ToString();

cl.HorizontalAlign = HorizontalAlign.Center;

cl.BackColor = Color.LightBlue;

e.Row.Cells.Add(cl);

}

}