how to set the datagridview columns to allow user to click to sort

A

AboutJAV

Hi,

I have a datagridview with 3 columns. the grid selectionmode is set
to

this.grid.SelectionMode =
System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;


I even set the columns sort property to

System.Windows.Forms.DataGridViewColumnSortMode.Automatic


When the form is loaded and any of the 3 columns are clicked, nothing
happens. The data does not reordered in any directions.

Any advice is appreciated.

Thanks,
 

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

Top