<
HTML
>
< HEAD >
< title > MergeHeader </ title >
< meta name ="GENERATOR" Content ="Microsoft Visual Studio .NET 7.1" >
< meta name ="CODE_LANGUAGE" Content ="C#" >
< meta name ="vs_defaultClientScript" content ="JavaScript" >
< meta name ="vs_targetSchema" content ="http://schemas.microsoft.com/intellisense/ie5" >
</ HEAD >
< body MS_POSITIONING ="GridLayout" >
< form id ="Form1" method ="post" runat ="server" >
< asp:datagrid id ="DataGrid1" style ="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat ="server"
BorderColor ="Tan" BorderWidth ="1px" BackColor ="LightGoldenrodYellow" CellPadding ="1" ForeColor ="Black"
CellSpacing ="1" >
< FooterStyle BackColor ="Tan" ></ FooterStyle >
< SelectedItemStyle ForeColor ="GhostWhite" BackColor ="DarkSlateBlue" ></ SelectedItemStyle >
< AlternatingItemStyle BackColor ="PaleGoldenrod" ></ AlternatingItemStyle >
< HeaderStyle Font-Bold ="True" BackColor ="Tan" ></ HeaderStyle >
< PagerStyle HorizontalAlign ="Center" ForeColor ="DarkSlateBlue" BackColor ="PaleGoldenrod" ></ PagerStyle >
</ asp:datagrid >
</ form >
</ body >
</ HTML >
< HEAD >
< title > MergeHeader </ title >
< meta name ="GENERATOR" Content ="Microsoft Visual Studio .NET 7.1" >
< meta name ="CODE_LANGUAGE" Content ="C#" >
< meta name ="vs_defaultClientScript" content ="JavaScript" >
< meta name ="vs_targetSchema" content ="http://schemas.microsoft.com/intellisense/ie5" >
</ HEAD >
< body MS_POSITIONING ="GridLayout" >
< form id ="Form1" method ="post" runat ="server" >
< asp:datagrid id ="DataGrid1" style ="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px" runat ="server"
BorderColor ="Tan" BorderWidth ="1px" BackColor ="LightGoldenrodYellow" CellPadding ="1" ForeColor ="Black"
CellSpacing ="1" >
< FooterStyle BackColor ="Tan" ></ FooterStyle >
< SelectedItemStyle ForeColor ="GhostWhite" BackColor ="DarkSlateBlue" ></ SelectedItemStyle >
< AlternatingItemStyle BackColor ="PaleGoldenrod" ></ AlternatingItemStyle >
< HeaderStyle Font-Bold ="True" BackColor ="Tan" ></ HeaderStyle >
< PagerStyle HorizontalAlign ="Center" ForeColor ="DarkSlateBlue" BackColor ="PaleGoldenrod" ></ PagerStyle >
</ asp:datagrid >
</ form >
</ body >
</ HTML >
public
class
MergeHeader : System.Web.UI.Page
{
private DataGrid m_dgDatagridToDecorate = null;
private ArrayList m_arrHeaderCells = null;
protected System.Web.UI.WebControls.DataGrid DataGrid1;
private Hashtable m_htblRowspanIndex = new Hashtable();
private void Page_Load(object sender, System.EventArgs e)
{
if(!this.IsPostBack)
{
MergeGrid();
}
}
AddMergeHeader
property
DatagridToDecorate_ItemCreated
NewRenderMethod
GetData
MergeGrid
Web Form Designer generated code
}
{
private DataGrid m_dgDatagridToDecorate = null;
private ArrayList m_arrHeaderCells = null;
protected System.Web.UI.WebControls.DataGrid DataGrid1;
private Hashtable m_htblRowspanIndex = new Hashtable();
private void Page_Load(object sender, System.EventArgs e)
{
if(!this.IsPostBack)
{
MergeGrid();
}
}
AddMergeHeader
property
DatagridToDecorate_ItemCreated
NewRenderMethod
GetData
MergeGrid
Web Form Designer generated code
}