Hiding gridview column for particular condition
Hiding gridview column for particular condition
Hello everyone, I need your appreciated help.
Between the columns of my GridView I have this field:
<asp:BoundField DataField="DIST-V" DataFormatString="{0:#,##0.###}"
HeaderText="Dist (n.)" />
I need see it only when the condition is verified in the my query Sql Server 2005.
If the column DIST-V is selected in my query I need see the value of recordset DIST-V else I don't see the column DIST-V in my Gridview.
Can you help me?
Thank you in advance.
Chevy