I have one column on my grid that is Unbound; the others are all Bound. When sorting occurs, the Unbound column is not included in the sort, leaving that column mismatched with the rest of the data.
Do I need to do anything special to get that column to sort, does sorting not work on BoundField columns?
I had to change the column to a bound column, and then change the data type from a date to a string so that I can display a blank field for empty dates.
I am binding a collection of C# .NET objects, and you cannot have a null date in C#.
Hello FireStrom12,
Were you able to resolve the issue?
Please let me know if I can provide any further assistance regarding this matter.
Hello,
I followed the steps you suggested and was unable to reproduce the behavior you're describing.
I am able to sort unbound column successfully and when I sort the bound columns it does sort the unbound column too. Make sure you have the DataType set to the correct type. Otherwise, it will do it as a string.
I have attached the sample project I used to test this. Please test this project on your PC; whether or not it works correctly may help indicate the nature of this problem.
If this sample project is not an accurate demonstration of what you're trying to do, please feel free to modify it and send it back, or send a small sample project of your own if you have one.
Please let me know if I can provide any further assistance.