Adding multiple rows to gridview?

Try this if you r using asp. Net n C# : ChildTable table = GridView1.Rowsindex. Parent as ChildTable; //get that row if (table!

= null) { GridViewRow row = new GridViewRow(-1, -1, DataControlRowType. DataRow, DataControlRowState. Normal); TableCell cell = new TableCell(); cell.

ColumnSpan = GridView1.Columns. Count; cell. Width = Unit.

Percentage(100); cell.Controls. Add(new LiteralControl("New Row")); row.Cells. Add(cell); table.Rows.

Add(row); } Thanks.

Please edit and use the code tag to make the post more redable – kevchadders Nov 25 '09 at 11:07 2 You get a -1 for not writing english. "u", "r" and "n" are not wnglish words. – sindre j Nov 25 '09 at 11:16.

ChildTable table = GridView1. GridViewRow row = new GridViewRow(-1, -1, DataControlRowType. ColumnSpan = GridView1.Columns.

Width = Unit.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions