Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Arne #1
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.
Arne Guest
-
sort in datagrid
Hi, I have some columns in my datagrid which are date type. I want to sort on them. What would be the best way to do it. Based on a article to... -
Sort datagrid
Hello Group, I have a datagrid which needs to be sorted but the column headers should not be clickable on certain conditions( say on the "print... -
bidirectional sort with datagrid
Can someone show me how to turn this into a bi-directional sort allowing ascending and descending using the default datagrid allowsorting attribute?... -
datagrid won't sort
I have a datagrid that won't sort. The event handler is firing and return label text, just not the sort. Here's my Sub Page_Load and Sub... -
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB.
Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. hi, guys i have asp... -
Elton Wang #2
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...template> I have a datagrid that sorts. The sort doesn't seem to execute on my> column. It only works on my bound columns.
Elton Wang Guest
-
Arne #3
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...> template> > I have a datagrid that sorts. The sort doesn't seem to execute on my>> > column. It only works on my bound columns.
>
>Arne Guest
-
Elton Wang #4
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...The> Elton,
> THe header for each bound column is underlined, meaning it is sortable.source> 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> > 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...> > template> > > I have a datagrid that sorts. The sort doesn't seem to execute on my> >> > > column. It only works on my bound columns.
> >
> >
Elton Wang Guest
-
Arne #5
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...> The> > Elton,
> > THe header for each bound column is underlined, meaning it is sortable.> source> > 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>> > > 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 Guest
-
Elton Wang #6
Re: Datagrid sort
It seems that the template column should be sortable. Could you post your
html code of the datagrid?
Elton Wang Guest



Reply With Quote

