setting part of the attribute value of datagrid column dynamically

Last post 07-04-2006 2:45 AM by swamyjithiru. 0 replies.

Sort Posts:

  • setting part of the attribute value of datagrid column dynamically

    07-04-2006, 2:45 AM
    • Member
      15 point Member
    • swamyjithiru
    • Member since 05-06-2006, 3:10 PM
    • Posts 3
     Hi all

    I am working around the problem:

      Setting part of  the attribute value for example HeaderText of Boundcolumn dynamically.

    My code Example is :
    <asp:boundcolumn headerText="<%= var_TypeName%>Name">

    I change var_TypeName dynamically in my code behind where it is declared public and i need the output somewhat like this:
    the HeaderText of the bound column should display:"Distributer Name" (here  
                                                                                                               var_TypeName = "Distributer")

    similarly im changing var_TypeName into "Retailer","City"etc.and i want the changes displayed accordingly.

    someone please help me to find a solution.
    thanks in advance
Page 1 of 1 (1 items)