DataGrid Item Command Event and BoundColumns

N

New Bee

Im sure nobody is going to bother answering this, but I can live in hope.

I am creating bound columns in the Init event of the page, and this works OK
for Edit and Update events because all the cells appear in the e.Item.cells
collection.

However, if I click on a link which generates a Item Command event, only the
static columns appear in this collection despite the columns having been
built in INIT.

This is most odd behaviour, I have gotten around this by using
Request.Form.Item("grdidname_ctl3_ctr4") type commands which is actually
looking at the data being posted back from the page. This is less than
optimum, because if I want to make changes it can screw things up a bit.

Any thoughts would be welcome on how to overcome this.,
 

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

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top