Datagrid/ButtonColumn Question...

Results 1 to 2 of 2

Thread: Datagrid/ButtonColumn Question...

  1. #1
    Join Date
    Dec 1969

    Default Datagrid/ButtonColumn Question...

    I have a datagrid with a buttoncolumn, and I was wondering if there was a way to disable, or better yet, hide the button based on the value of another column in the particular row. I would immagine I could write something to go through the datagrid after it has been bound to check a value and then manually hide the button if neccessary, but is there an easier way to do this? <BR><BR>Thanks in advance.

  2. #2
    Join Date
    Dec 1969

    Default RE: Datagrid/ButtonColumn Question...

    Setup a handler for the ItemDataBound event, then in that event if the item being bound is an Item or AlternatingItem check / disable the edit button as needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts