By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,991 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,991 IT Pros & Developers. It's quick & easy.

DataGrid - ButtonColumn Question

P: n/a
<asp:datagrid ......>
<columns>
.........
.........
<asp:ButtonColumn Text="Delete" HeaderText="Delete"
ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn>
.....

I am using this: e.Item.Cells[4].Controls[0] to find the control in cell
[x], is there a way to find it by name?? It is not a regular button, it
doesn't have the "ID" attribute. I know there is a FindControl method, but
it doesn't help in Cells[] array.

Help...

Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
turn it into a template column, then you can use e.item.findcontrol("id")

"00_CumPeeWearD12" <00**************@gmail.com> wrote in message
news:D_********************@rogers.com...
<asp:datagrid ......>
<columns>
.........
.........
<asp:ButtonColumn Text="Delete" HeaderText="Delete"
ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn>
.....

I am using this: e.Item.Cells[4].Controls[0] to find the control in cell [x], is there a way to find it by name?? It is not a regular button, it
doesn't have the "ID" attribute. I know there is a FindControl method, but it doesn't help in Cells[] array.

Help...

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.