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

    Datagrid Control's Problem

    Hi friends,

    I have used a DataGrid Control in my page and have also implemented its Default Paging.Now the problem is that the Title of Coulmn Headers are same as the coulms headers in Databese table, but i want to change there Title at run time..How can i implement that?????

    Its urgent...if somebody can provide me with quick response.

    Thanks
    Deepak

  2. #2
    Join Date
    Nov 2003
    Posts
    3
    The quickest solution is to change the title of the header while you are reading out of your sql already, using the ALiAS Expresion - this way you don't even need to touch your code!

    Example:

    SELECT CloCountry AS Country, ColFlag AS FLAG
    FROM tmpTable


    Now you have changed the headertext already !



    TADA

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