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

Datagrid Edit Column

P: n/a
don
I will try again with this one.

I have a datagrid working fine in my ASP page and it is
editable using a edit/update/cancel column. All is well,
but I have a Total line at the end that I would not want
the user to edit, I have been trying to figure out how I
can get to the Edit link on this row.

I would imagine you get to it in the ItemDataBound, but
when I look in that cell for any controls there are
none. How can I turn off the edit button for any one row.

thanks

don

Jul 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Don,

Thanks for your post. You can just use the DataGrid ItemDataBound event to
search for the Edit button. Once you have found it you just set it's
Visible property to false. Please refer to the following sample:

How to Create a Conditional Edit Button in a DataGrid
http://www.dotnetjunkies.com/Article...E47A79A221E.dc
ik

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2

P: n/a
don
thank you very much. Worked like a charm.

don
-----Original Message-----
Hi Don,

Thanks for your post. You can just use the DataGrid ItemDataBound event tosearch for the Edit button. Once you have found it you just set it'sVisible property to false. Please refer to the following sample:
How to Create a Conditional Edit Button in a DataGrid
http://www.dotnetjunkies.com/Article...955-C260-4637- BB76-EE47A79A221E.dcik

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
.

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.