DataGrid Add Row

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Hello all.

I have a datagid that is populated by a dataview. The Grid
consists of a header, 5 rows of data, then a footer. Is it
possible to insert a new row BELOW the footer? I've
already tried to add a row but it's adding it above the
footer.

I'm using C#,

Thanks all.

Jon
 
I have tried this before and was not successful. It will be helpful if
you could tell us why you want to do that?

If you need an extra row after the footer with data populated from
your dataview, you can create a table with one row under you datagrid.
Give this table an ID and set it to runat="server". Then in your
databinding event, if the item is a footer, then also populate the
extra row with data from the dataview using the table id.

Tommy,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top