469,889 Members | 1,198 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,889 developers. It's quick & easy.

Single sort column in DataGrid!?

Hello,
I am trying to have only one column sortable within a
data grid. I know you set the allowsorting property to
true on the style or the grid, but this enables sorting
for all columns. Is there a way to override this
implementation so that only a few or one of the columns
may be sorted?

thanks,
-brett

Nov 15 '05 #1
1 1603
Brett:

Is this desktop or Web? You can trap the mouse down event and bind your
grid to a dataView instead of a datatable, You can manipulate the sort from
there. Whether this is desktop or web will have a subtle effect on how to
do this, but if you use a Dataview, sort it, and bind the grid to it, you
can make just about anything happen.

Let me know if you have any troubles.

Bill
"Brett P." <br********@tlc.state.tx.us> wrote in message
news:0e****************************@phx.gbl...
Hello,
I am trying to have only one column sortable within a
data grid. I know you set the allowsorting property to
true on the style or the grid, but this enables sorting
for all columns. Is there a way to override this
implementation so that only a few or one of the columns
may be sorted?

thanks,
-brett

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by | last post: by
7 posts views Thread by DC Gringo | last post: by
4 posts views Thread by yer darn tootin | last post: by
2 posts views Thread by shuckjunkmail | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.