By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,842 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

Datagrid view problem

100+
P: 121
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.datasource=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
Sep 1 '07 #1
Share this Question
Share on Google+
1 Reply


debasisdas
Expert 5K+
P: 8,127
You can easily achieve the same by using the COLUMN ALIAS of the databse table fields.

sample
----------------
Expand|Select|Wrap|Line Numbers
  1. select ename as employeename,sal as salary from emp;
Sep 1 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.