Datagrid view problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • charvi
    New Member
    • May 2007
    • 121

    Datagrid view problem

    I have datagrid in my project is used to view the result from the back end i.e from tables.Here datagrd column names fromtable fields.can i alter the column nams
    i used the code
    set datagrid1.datas ource=rs
    for ed
    if i have field name empname
    the datagrid column header of column 0 is empname
    i want to rename the column header as Employee Name
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    You can easily achieve the same by using the COLUMN ALIAS of the databse table fields.

    sample
    ----------------
    [CODE=oracle]select ename as employeename,sa l as salary from emp;[/CODE]

    Comment

    Working...