CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    70

    asp.net version 2.0 - datagrdid headertext runtime changing

    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
    VB.Net 2005, Net Framework 2.0

  2. #2
    Join Date
    Jan 2008
    Posts
    47

    Re: asp.net version 2.0 - datagrdid headertext runtime changing

    it is imple as below

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured