allelopath
asked on
How do identify buttoncolumn?
I have a button column like so:
How do I do this?
<asp:ButtonColumn CommandName="Cancel" Text="Make Pending"></asp:ButtonColumn>
I wanted to make this visible or not, row by row, based on some critieria, so I added an<asp:ButtonColumn ID="btnMakePending" CommandName="Cancel" Text="Make Pending"></asp:ButtonColumn>
In C#:while (enumerator.MoveNext())
{
int something = enumerator.Current;
if (something != 0)
{
btnMakePending.Visible = false;
}
}
But it turns out the ID is not a property of ButtonColumn.How do I do this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.