| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
creative soloper
Join Date: Sep 2002
Posts: 43
|
can someone give me an example of how I would bind data to a DataGrid using different column names than what is returned from the database.
ie... query database for contactname, email... column names show as Contact Name, E-Mail can I do this using DataGlue somehow? |
|
|
|
|
|
#2 |
|
creative soloper
Join Date: Sep 2002
Posts: 43
|
I got this to work using the following
DataGlue.bindFormatFunction(staff,result,bindGrid) ; function bindGrid(result){ return {contact:[result.contactname], email:result.email}; } so that's fine but... I wanted to label the column contact name(two words and a space). Does the DataGrid not allow this or is it something else? |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Nov 2003
Posts: 22
|
An alternate method would be to Select mycolumn as ColumnNew from mytable
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|