ok so my goal is to add only 1 static row under the gridview headr EXAMPLE:
|coloumnHeader1|coloumnHeader2|coloumnHeader3|coloumnHeader4|
|———————-static Row—————————|
|DataBoundField|DataBoundField|DataBoundField|DataBoundField|
|DataBoundField|DataBoundField|DataBoundField|DataBoundField|
|DataBoundField|DataBoundField|DataBoundField|DataBoundField|
|DataBoundField|DataBoundField|DataBoundField|DataBoundField|
|DataBoundField|DataBoundField|DataBoundField|DataBoundField|
|DataBoundField|DataBoundField|DataBoundField|DataBoundField|
|———————-Footer——————————-|
my hunch is its got something with RowDataBound but that’s as far as i have got.
i guess i need to explain myself better : what i want to do is the equivalent to adding a new HeaderRow…
thnx for all the helpers 😀
FOUND THE ANSWER:
after a lot of googling i found what i was looking for ,
on the asp
<asp:GridView OnPreRender="grd_Pre" CssClass="table" ID="GridView1" runat="server" AutoGenerateColumns="False"
>
in the code behind
protected void grd_Pre(object sender, EventArgs e)
{
GridViewRow gv = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Normal);
TableCell tc = new TableCell();
tc.ColumnSpan = 3;
tc.Text = "GridView Header";
tc.Attributes.Add("style", "text-align:center");
gv.Cells.Add(tc);
this.GridView1.Controls[0].Controls.AddAt(0, gv);
}
FOUND THE ANSWER:
after a lot of googling i found what i was looking for ,
on the asp
in the code behind