DataGrid Column Headers

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ahmet AKGUN

    #1

    DataGrid Column Headers


    Hi All;

    I have one datagrid control on which o show some of my database tables.
    My trouble is that my column names on my table are not so good for customers
    to understand.
    So I must use more understandable names on my datagrids column headers
    instead of column names.
    Is there a way of changing column header names of one datagrid and showing
    good expalanations there ?

    For example in my country table, I have CntId,CntName and on datagrid I
    would like to show
    Country Id and Country Name

    Helps'll be appreciated..
    Ahmet



  • mario

    #2
    Re: DataGrid Column Headers

    There's two way to do this.

    1st :
    By SQL SELECT CntId as [Country Id ],CntName as [Country Name] FROM ...
    WHERE...

    2nd create a TableStyle


    "Ahmet AKGUN" <akgun_ahmet@ho tmail.com> wrote in message
    news:OWdNpe6dDH A.372@TK2MSFTNG P11.phx.gbl...[color=blue]
    >
    > Hi All;
    >
    > I have one datagrid control on which o show some of my database tables.
    > My trouble is that my column names on my table are not so good for[/color]
    customers[color=blue]
    > to understand.
    > So I must use more understandable names on my datagrids column headers
    > instead of column names.
    > Is there a way of changing column header names of one datagrid and showing
    > good expalanations there ?
    >
    > For example in my country table, I have CntId,CntName and on datagrid I
    > would like to show
    > Country Id and Country Name
    >
    > Helps'll be appreciated..
    > Ahmet
    >
    >
    >[/color]


    Comment

    • Ahmet AKGUN

      #3
      Re: DataGrid Column Headers


      thanks..

      "mario" <MSimard@parado x.ca> wrote in message
      news:%23G2hFh6d DHA.1044@TK2MSF TNGP10.phx.gbl. ..[color=blue]
      > There's two way to do this.
      >
      > 1st :
      > By SQL SELECT CntId as [Country Id ],CntName as [Country Name] FROM ...
      > WHERE...
      >
      > 2nd create a TableStyle
      >
      >
      > "Ahmet AKGUN" <akgun_ahmet@ho tmail.com> wrote in message
      > news:OWdNpe6dDH A.372@TK2MSFTNG P11.phx.gbl...[color=green]
      > >
      > > Hi All;
      > >
      > > I have one datagrid control on which o show some of my database tables.
      > > My trouble is that my column names on my table are not so good for[/color]
      > customers[color=green]
      > > to understand.
      > > So I must use more understandable names on my datagrids column headers
      > > instead of column names.
      > > Is there a way of changing column header names of one datagrid and[/color][/color]
      showing[color=blue][color=green]
      > > good expalanations there ?
      > >
      > > For example in my country table, I have CntId,CntName and on datagrid I
      > > would like to show
      > > Country Id and Country Name
      > >
      > > Helps'll be appreciated..
      > > Ahmet
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...