DataGridView + sorted column
Posted: Thu Jul 26, 2012 9:36 pm
Hello,
I'm trying to sort a column in a dataGridView but i find not the solution.
I load the dataGridView with the function " Load-dateGridView ".
exemple in my code :
[array]$list = Function_listefichier -path $path
Load-dataGridView -DataGridView $main_datagridview -Item list
Here, $list is an array of file with several properties.
The dataGridView is loaded but impossible to sort the columns when i click on the column header. In my code I try :
$main_datagridview.Columns | foreach { $_.SortMode = 'automatic' }
But it does not work.
thank's for your help.
Bruno
FRANCE
I'm trying to sort a column in a dataGridView but i find not the solution.
I load the dataGridView with the function " Load-dateGridView ".
exemple in my code :
[array]$list = Function_listefichier -path $path
Load-dataGridView -DataGridView $main_datagridview -Item list
Here, $list is an array of file with several properties.
The dataGridView is loaded but impossible to sort the columns when i click on the column header. In my code I try :
$main_datagridview.Columns | foreach { $_.SortMode = 'automatic' }
But it does not work.
thank's for your help.
Bruno
FRANCE