By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,245 Members | 884 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,245 IT Pros & Developers. It's quick & easy.

Grid View sort by column

P: n/a
I have a Grid View and I want to sort the data in Gridview by clicking
on column. How can I do that.

Apr 13 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.

Apr 13 '07 #2

P: n/a
On Apr 13, 9:44 am, "Larry Bud" <larrybud2...@yahoo.comwrote:
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.

Apr 13 '07 #3

P: n/a
bpd
On Apr 13, 1:59 pm, bba...@yahoo.com wrote:
On Apr 13, 9:44 am, "Larry Bud" <larrybud2...@yahoo.comwrote:
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.

Apr 13 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.