![]() |
Datagrid sort
I have a datagrid that sorts. The sort doesn't seem to execute on my template
column. It only works on my bound columns. |
Re: Datagrid sort
Hi Arne,
When conducting sort to a datagrid, it actually sorts underlying data source of datagrid. And you need to implement sort function by yourself, in datagrid_SortCommand event. Could you show your sorting code? "Arne" <Arne@discussions.microsoft.com> wrote in message news:F0937BBA-92A9-4355-8971-7C8C3AD191F7@microsoft.com... > I have a datagrid that sorts. The sort doesn't seem to execute on my template > column. It only works on my bound columns. |
Re: Datagrid sort
Elton,
THe header for each bound column is underlined, meaning it is sortable. The sort event fires when the operator clicks column and the sort events is implemented. The header for the template column is not underlined and the sort event doesn't fire. "Elton Wang" wrote: > Hi Arne, > > > > When conducting sort to a datagrid, it actually sorts underlying data source > of datagrid. And you need to implement sort function by yourself, in > datagrid_SortCommand event. > > > > Could you show your sorting code? > > > > > > "Arne" <Arne@discussions.microsoft.com> wrote in message > news:F0937BBA-92A9-4355-8971-7C8C3AD191F7@microsoft.com... > > I have a datagrid that sorts. The sort doesn't seem to execute on my > template > > column. It only works on my bound columns. > > > |
Re: Datagrid sort
Do you have SortExpression = "Data_Field_Name" in the template column?
"Arne" <Arne@discussions.microsoft.com> wrote in message news:51919A72-561E-4ECD-B1B5-54BE7EFCBB1F@microsoft.com... > Elton, > THe header for each bound column is underlined, meaning it is sortable. The > sort event fires when the operator clicks column and the sort events is > implemented. > The header for the template column is not underlined and the sort event > doesn't fire. > > "Elton Wang" wrote: > > > Hi Arne, > > > > > > > > When conducting sort to a datagrid, it actually sorts underlying data source > > of datagrid. And you need to implement sort function by yourself, in > > datagrid_SortCommand event. > > > > > > > > Could you show your sorting code? > > > > > > > > > > > > "Arne" <Arne@discussions.microsoft.com> wrote in message > > news:F0937BBA-92A9-4355-8971-7C8C3AD191F7@microsoft.com... > > > I have a datagrid that sorts. The sort doesn't seem to execute on my > > template > > > column. It only works on my bound columns. > > > > > > |
Re: Datagrid sort
Yes I have
"Elton Wang" wrote: > Do you have SortExpression = "Data_Field_Name" in the template column? > > > "Arne" <Arne@discussions.microsoft.com> wrote in message > news:51919A72-561E-4ECD-B1B5-54BE7EFCBB1F@microsoft.com... > > Elton, > > THe header for each bound column is underlined, meaning it is sortable. > The > > sort event fires when the operator clicks column and the sort events is > > implemented. > > The header for the template column is not underlined and the sort event > > doesn't fire. > > > > "Elton Wang" wrote: > > > > > Hi Arne, > > > > > > > > > > > > When conducting sort to a datagrid, it actually sorts underlying data > source > > > of datagrid. And you need to implement sort function by yourself, in > > > datagrid_SortCommand event. > > > > > > > > > > > > Could you show your sorting code? > > > > > > > > > > > > > > > > > > "Arne" <Arne@discussions.microsoft.com> wrote in message > > > news:F0937BBA-92A9-4355-8971-7C8C3AD191F7@microsoft.com... > > > > I have a datagrid that sorts. The sort doesn't seem to execute on my > > > template > > > > column. It only works on my bound columns. > > > > > > > > > > > > |
Re: Datagrid sort
It seems that the template column should be sortable. Could you post your
html code of the datagrid? |
| All times are GMT. The time now is 04:15 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.