Click to See Complete Forum and Search --> : asp.net version 2.0 - datagrdid headertext runtime changing


marinajogy
September 14th, 2008, 04:34 AM
Hi
I am using asp.net version 2.0 - i want programatcially change the column
header of datagrid for a bound column - see below

<asp:BoundColumn HeaderText="Locality Name" DataField="locality">
<ItemStyle BackColor=GOLD Wrap=false Width="150px"></ItemStyle>
<HeaderStyle HorizontalAlign="Center" Width="150px"/>
</asp:BoundColumn>

when code executes i want change HeaderText="Locality" etc
is possible

junaidsherief
September 14th, 2008, 11:07 PM
it is imple as below

dglocality.Columns(0).HeaderText = "marina"