Results 1 to 1 of 1

Thread: GridView and CommandField

  1. #1
    Fanatic Member snufse's Avatar
    Join Date
    Jul 04
    Location
    Jupiter, FL
    Posts
    873

    GridView and CommandField

    I have a GridView where 1st cell is a CommandField like:

    Code:
    <asp:CommandField HeaderText="Select" SelectText="Ticket" ShowSelectButton="True" >
      <HeaderStyle HorizontalAlign="Center" />
      <ItemStyle HorizontalAlign="Center" />
    </asp:CommandField>
    Is there a way that I can condition the display and also condion the Button click using code behind. Depending upon content of one of the other cells I would like to be able to condition whether to be able to clik or not. I assume I would do this in RowDataBound and wonder if there is properties to control this?

    Thank you.
    Last edited by snufse; Sep 4th, 2012 at 09:10 AM.

Posting Permissions

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