I have a GridView where 1st cell is a CommandField like:
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?
<asp:CommandField HeaderText="Select" SelectText="Ticket" ShowSelectButton="True" >
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" />