DataGrid Cell with an ImageButton In It

K

KJ

I create a datagrid and at runtime I add an ImageButton to certain
cells(e.Item.Cells.Controls.Add(imgbutton)). Now when I click on a row
that contain an image button, in the ItemCommand event the row is
return.

So I do e.Item.Cells(3) is the cell with the control in it supposely.
When I do e.Item.Cells.Controls.Count it returns 0. Why? How can I
tell if I clicked on a row with an imagebutton in cell 3?

Thanks
 

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,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top