dynamic columns and datagrid items

S

SMai24

I 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!!!!!!
 
T

Tatyana

Hello,

I have the same problem, have a look at the following post ...

"Catch TextBox value entered by user into the GridView Templated Field (both
created dynamically) on PostBack"

I have heard that it has something to do with the way the GridView control
is rendered on the page. It should be - first add control onto the page and
then bind to DataSet.

Thank you,

Tatyana
 

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,768
Messages
2,569,575
Members
45,054
Latest member
LucyCarper

Latest Threads

Top