How to add dynamic row in a grid

E

Elton Wang

Hi Dave,

Suppose you are using a datatable as your datagrid's data source, you can
add one row to the datatable, then bind the datatable to datagrid.



HTH
 
S

Sachin Saki

Hi,

Solution provided by Dave is good one, but you can do it without making
postback or binding again the datagrid to datatable.

Add column elements in datagrid footer and on page load set the footer
property to visible. if your are specific to add one row only.

For. Example. Datagrid contains three column ie. ItemTemplate column
contains textboxes you can add it to datagrid footer and set its visible
property to true on pageload.
 

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

Members online

Forum statistics

Threads
474,141
Messages
2,570,813
Members
47,357
Latest member
sitele8746

Latest Threads

Top