On Apr 13, 1:59 pm, bba...@yahoo.com wrote:
> On Apr 13, 9:44 am, "Larry Bud" <larrybud2...@yahoo.com> wrote:
>
> > On Apr 13, 12:04 pm, bba...@yahoo.com wrote:
>
> > > I have a Grid View and I want to sort the data in Gridview by clicking
> > > on column. How can I do that.
>
> > Turn on "AllowSorting" property in the Gridview.
>
> I Turned on "AllowSorting" property in the Gridview. but it's not
> working and columns headers are not clicakble.
Are you using databound data? If not, the sortexpression property
will need to be manually set. Edit Columns of the
datagrid, select a column, find sortex[ression property under
Behavior. Give it a value. Databound items default to
the field name of the databound item.
|