Datagrid Column Caption Problem While Binding Data
-
In asp.net When you bind data to datagrid it automatically assigns the header text of columns with the binding source fields. lets say my first field name is firstName and it displays as it is in the datagrid's column header text.But i want "First Name" instead of firstName.How could i achieve that without introducing some new table or with doing extra work.Keep in mind i dun wanna disturp the order of the colums????
-
In asp.net When you bind data to datagrid it automatically assigns the header text of columns with the binding source fields. lets say my first field name is firstName and it displays as it is in the datagrid's column header text.But i want "First Name" instead of firstName.How could i achieve that without introducing some new table or with doing extra work.Keep in mind i dun wanna disturp the order of the colums????
Go to datagrids property bulider page and set the column header there
Cheers Navaneeth!!
-
Go to datagrids property bulider page and set the column header there
Cheers Navaneeth!!
well but doing so disturbs the order of binding source columns...lets say i have 3 fields id firstName n lastName and my colum names "ID", "First Name" n "Last Name". After binding it assigns field without any order against ID it binds fiestName field so on n so forth.