R
RSB
Hi Every one,
Here is one more problem. I have two Tables.
table employee and table lookup_countries
so employee table has the employeeiD, employeeName and CountryCode.
where as lookup_countries have CountryCode and CountryName.
Now i have DataGrid in which i am just populating the DataFrom employee
table. and Binding the CountryCode field to the CountryName while painting
the DataGrid.
that is i am not returning the Country Name from the DataBase..
so this is what i have as the part of DataGrid..
<asp:Label id=CountryLabel runat="server"
Text='<%#GetCountryName(DataBinder.Eval(Container.DataItem,
"countryCode").ToString()) %>'>
</asp:Label>
Now the problem is if i want to SOrt the Data then i am only able to Sort
the data based on the COuntryCode not the CountryName. IS there any way by
which i can sort the DataGrid Data instead of sorting the DataSource...
Thanks
RSB
Here is one more problem. I have two Tables.
table employee and table lookup_countries
so employee table has the employeeiD, employeeName and CountryCode.
where as lookup_countries have CountryCode and CountryName.
Now i have DataGrid in which i am just populating the DataFrom employee
table. and Binding the CountryCode field to the CountryName while painting
the DataGrid.
that is i am not returning the Country Name from the DataBase..
so this is what i have as the part of DataGrid..
<asp:Label id=CountryLabel runat="server"
Text='<%#GetCountryName(DataBinder.Eval(Container.DataItem,
"countryCode").ToString()) %>'>
</asp:Label>
Now the problem is if i want to SOrt the Data then i am only able to Sort
the data based on the COuntryCode not the CountryName. IS there any way by
which i can sort the DataGrid Data instead of sorting the DataSource...
Thanks
RSB