I have a aspxgridview control from DevXpress. Is there a way to dynamically specify the column headers in the code file and not in the aspx file?
This is what I have right now (in the aspx/html file):
<dxwgv:ASPxGridView ID="grid" runat="server" OnInit ="grid_Init">
<Columns>
<dxwgv:GridViewDataTextColumn Caption="CLERK" FieldName="CLERK" VisibleIndex="1">
</dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataTextColumn Caption="SALE" FieldName="SALE" VisibleIndex="2">
</dxwgv:GridViewDataTextColumn>
</Columns>
</dxwgv:ASPxGridView>
What I want to do is something like this:
if lang = english
grid.column.header(2, SALE)
elsif lang = french
grid.column.header(2, vente)