Weller0123
asked on
need to rename columns on datagrid...
I'm pulling a bunch of columns from a datareader into a datagrid. Right now it is handling all the formatting.
I just want to rename the column headers and leave everything else alone. What is the simplest way to do this?
Thanks,
gridREQ.DataSource = rdr
gridREQ.DataBind()
I just want to rename the column headers and leave everything else alone. What is the simplest way to do this?
Thanks,
gridREQ.DataSource = rdr
gridREQ.DataBind()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
On your query when you call your field:
SELECT HeaderThat_I_DontWant AS HeaderThat_I_Want
FROM MyTable
... or you can go iboutchkine way but it won't change the grid it will change the table(tablestyle)... what he said.
SELECT HeaderThat_I_DontWant AS HeaderThat_I_Want
FROM MyTable
... or you can go iboutchkine way but it won't change the grid it will change the table(tablestyle)... what he said.
Sorry I didn’t read iboutchkine last part that will change the grid as well... sorry.
ASKER