Datagrid sorting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a datagrid AutoGenerateColumns=False and the columns are created in code behind. The sort command method is not being fired when the headings are clicked, and then the grid completely disappears. If I use AutoGenerateColumns=True the sorting works fine, but this is not an option for this page. Can anyone tell me how to get sorting to work when the columns are created in code?
 
you aren't providing the whole truth here. is your enableviewstate property
set to false?
 

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

Back
Top