Sorting issue !

G

Gary

Hi,

We are facing a typical problem with sorting a datagrid in Windows
application ( c# )

The scenario

We have a datagrid which is binded to a dataview which conatins two columns
say Name and Age.

We tried with allowsorting property, to make the sorting enable and it is
working fine.

But the problem is

As soon as a user enters some value in new row, and leaves the row, the row

display position will change, based on the sort order. This is very much

Odd looking. Actually what I expect is, the new row should stay in the last

poistion, until the user does some action (like clicking the column header)

to sort it again.

For acheiving this, we tried with setting the allowsorting property back

to false as soon as the sorting is finished once then the display will also
get unsorted, which is not expected.

It will be of great help if someone can sort out this problem. Thanks in
advance.

- Gary -
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,186
Latest member
vinaykumar_nevatia

Latest Threads

Top