Datagrid Edit Column

  • Thread starter Thread starter don
  • Start date Start date
D

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
 
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/38C89955-C260-4637-BB76-EE47A79A221E.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.
 
Back
Top