Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

How to sort datagridview in Visual Studio 2012 (VC++)

$
0
0

Hi,

I am using a dataGridView in my project and I am filling it by

dataGridView1->Rows->Add(id, time(NULL),x1 ,x2); // whatever

Now I am trying to sort it by the id, which contains just integer values.

I found many code examples for C# but I wasn't able to port it to VC++. :-(

I tried something like that:

SortOrder sortorder;
ListSortDirection direction;

dataGridView1->SortOrder = sortorder.Ascending;

// doesn't work

I hope you can help me.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>