Click to See Complete Forum and Search --> : Datagrid Control's Problem


sharmadeep1980
January 5th, 2004, 04:22 AM
Hi friends,

I have used a DataGrid Control in my page and have also implemented its Default Paging.Now the problem is that the Title of Coulmn Headers are same as the coulms headers in Databese table, but i want to change there Title at run time..How can i implement that?????

Its urgent...if somebody can provide me with quick response.

Thanks
Deepak

090376
January 6th, 2004, 09:52 AM
The quickest solution is to change the title of the header while you are reading out of your sql already, using the ALiAS Expresion - this way you don't even need to touch your code!

Example:

SELECT CloCountry AS Country, ColFlag AS FLAG
FROM tmpTable


Now you have changed the headertext already !



TADA