I have a 3 level WHDG and sorting does not seem to work. Everytime I click on a column, I get an error "Object reference not set to an instance of an object". My dataset has 3 data tables and they are linked with the correct data relations. Also the primary key on the tables are set. I spent almost a day troubleshooting but no luck. I would appreciate someones help!
I have attached my code that is modified for 2 levels. I get an error on clicking a column in the 2nd level. Clicking on the first level column does not throw an error but it also does not sort the data.
Hello Ram,
I was not able to run your sample because of the missing datasource dependency
I took a look at the code snippet and I have suspicion that clearing DataSource every time can be the cause of the issue.
Can you please try to remove the invocation?
Also an isolated sample will be appreciated.
Thank you.