Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Datagrid Control (http://www.velocityreviews.com/forums/f60-asp-net-datagrid-control.html)
-   -   Datagrid sort (http://www.velocityreviews.com/forums/t762244-datagrid-sort.html)

Arne 08-25-2005 12:40 PM

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.

Elton Wang 08-25-2005 05:28 PM

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.




Arne 08-25-2005 08:19 PM

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.

>
>
>


Elton Wang 08-26-2005 12:25 PM

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.

> >
> >
> >




Arne 08-26-2005 01:33 PM

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.
> > >
> > >
> > >

>
>
>


Elton Wang 08-26-2005 06:22 PM

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.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57