dynamic columns and datagrid items

S

SMai24

created 4 boundcolumns dynamically or programmatically and bind them
to a datasource, when client click on a button before posting back to
the server, i am trying to extract the data from the datagrid throught
its datagrid.items, but nothing is there(count = 0). Does anyone have
any clues about this? Any help would be greatly appreciated!!!!!!...
 
S

SMai24

if i cant extract the data before postback, then how am i supposed to
know to find out what the client did to the form? For example, i have
generated checkbox column, when a client clicks on the checkbox, how do
i find that the checkbox is checked?
 
E

Eliyahu Goldin

You have to re-create dynamically created controls on every postback.

Eliyahu
 
E

Eliyahu Goldin

You just need to re-create exactly the same controls as you did for the
first page load. On the postback asp.net will take care of populating the
controls with the correct client data.

Eliyahu
 

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
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top