Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Sort DataGridView by another DataGridView's Row

$
0
0

Hello,

I am reading Excel-Files with OleDB and fill there content into a DataGridView. 
The Application is currently able to read Excelfiles and fill them into 2 separate DataGridViews (from now on DGV).
Now I want to order the first DGV like the second DGV respectively one of the second DGV's Columns.

Is there a way to achieve this?
(I don't want to sort ASCending or DESCending!, I want to have the exact same order for the first DGV as the second DGV)

I searched a lot, but couldn't find anything, beside ASC/DESC-Sorting or List-Sorting.

Thanks in Advance

Daniel


edit: The order of the second DataGridView must not be changed


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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