Hi
I add an additional headerrow for pagesizing. The additional row is added on
GrdRemarkNature_RowCreated event.
Code I used is:

GridViewRow row = new GridViewRow(0, -1, DataControlRowType.Header, DataControlRowState.Normal);
            row.ID = RowId;

            Table t = (Table)GrdRemarkNature.Controls[0];
            TableCell cell = new TableHeaderCell();

            cell.ColumnSpan = 10; // ********
            Literal oLit = new Literal();
            oLit.Text = "Page Size: ";
            cell.Style["padding-left"] = "600px";
            cell.Controls.Add(new LiteralControl("Page Size:"));
            cell.Controls.Add(ddl);

            row.Cells.Add(cell);
            t.Rows.AddAt(0, row);

can i get this row after databind.

Thanks in advance,

Sreevidya

try to write this code in GridView's RowDataBinding event

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.