GridView template fields do not work after removing some columns

P

Pavel Tsekov

Hi to all,

I'm Pavel Tsekov and I have the following problem:

I have a GridView web control (ASP.NET 2.0) and it is databound to a
datasource.
There are several DataBound fields in the GridView and also several Template
fields.

At some time I need to remove the last two columns(fields) from the
GridView, which are DataBound. My problem is that after removing those, the
template fields are not working anymore (the data inside the template
columns(fields) is empty). The rest of the DataBound fields though are
filled-in correctly.

So, why do the template fields stop working, after removing some fields from
a GridView? How can I solve this?

Thanks in advance.
 

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,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top