H
Hai
Dear gurus,
Is it possible to specify the column header with variable?
If I want to make headerText as Sales and Credit how do I do so?
Thanks in Advance.
Hai
'Here the codes
Dim s1,s2 as string
s1 = "Sales"
s2 = "Credit"
<aspataGrid
ID="mygrid1"
AutoGenerateColumns="False"
Runat="Server">
<Columns>
<asp:BoundColumn DataField="REPNAME" HeaderText="REPNAME" />
<asp:BoundColumn DataField="month1" HeaderText=s1 />
<asp:BoundColumn DataField="month2" HeaderText=s2 />
<asp:BoundColumn DataField="total" HeaderText="TOTAL" />
</columns>
</aspataGrid>
Is it possible to specify the column header with variable?
If I want to make headerText as Sales and Credit how do I do so?
Thanks in Advance.
Hai
'Here the codes
Dim s1,s2 as string
s1 = "Sales"
s2 = "Credit"
<aspataGrid
ID="mygrid1"
AutoGenerateColumns="False"
Runat="Server">
<Columns>
<asp:BoundColumn DataField="REPNAME" HeaderText="REPNAME" />
<asp:BoundColumn DataField="month1" HeaderText=s1 />
<asp:BoundColumn DataField="month2" HeaderText=s2 />
<asp:BoundColumn DataField="total" HeaderText="TOTAL" />
</columns>
</aspataGrid>