R
Randall Parker
One can set individual controls in Code Behind by giving the controls ID names and
then declaring corresponding objects for them in Code Behind and then setting Visible
= false or true for each such named control. So far so good.
But with aspataGrid and asp:BoundColumn one can not assign an ID to each column
since each column's data row gets reproduced N times for N table rows.
So how to "name" a bound column in order to be able to set the column's visibility in
Code Behind?
I want something like:
ColumnName.Visible = true;
and
ColumnName.Visible = false;
I want to decide at page load time whether particular columns will be visible.
Suggestions?
then declaring corresponding objects for them in Code Behind and then setting Visible
= false or true for each such named control. So far so good.
But with aspataGrid and asp:BoundColumn one can not assign an ID to each column
since each column's data row gets reproduced N times for N table rows.
So how to "name" a bound column in order to be able to set the column's visibility in
Code Behind?
I want something like:
ColumnName.Visible = true;
and
ColumnName.Visible = false;
I want to decide at page load time whether particular columns will be visible.
Suggestions?