Header name in datagrid

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

    #1

    Header name in datagrid


    Hi all,

    I need to know how to manually set the header name of a
    column in a datagrid.

    Everytime i retieve records from a database, the coloum
    header of the datagrid defaults to the column header of
    the coloumn in the table in the database.

    Thanx
  • Norman Yuan

    #2
    Re: Header name in datagrid

    Please indicate WHICH DataGrid you are talking: Win form DataGrid or Web
    control DataGrid (both are supplied in .NET Framework)?

    For Win form DataGrid, look into
    DataGrid->TableStyles(Gr idTableStyle)->GridColumnStyl es(DataGridColu mnStyle)
    For Web control DataGrild: dataGrid->Columns(BoundC olumn)

    "Will" <anonymous@disc ussions.microso ft.com> wrote in message
    news:0b8701c3d4 70$ce35e4d0$a40 1280a@phx.gbl.. .[color=blue]
    >
    > Hi all,
    >
    > I need to know how to manually set the header name of a
    > column in a datagrid.
    >
    > Everytime i retieve records from a database, the coloum
    > header of the datagrid defaults to the column header of
    > the coloumn in the table in the database.
    >
    > Thanx[/color]


    Comment

    Working...