471,092 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

Datagrid Edit Column

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
2 3086
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
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.

Similar topics

reply views Thread by JP011 | last post: by
3 posts views Thread by Jim Heavey | last post: by
4 posts views Thread by Stephan Bour | last post: by
3 posts views Thread by Leo | last post: by
10 posts views Thread by Terry Olsen | last post: by
8 posts views Thread by =?Utf-8?B?bWlrZWc=?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.