Bonjour, j'ai un petit problème avec un listview....

Sur MSDN on me donne un exemple en C#, mais en essayant de l'implementer.... pouf une erreur "does not implement interface member ..."

donc... voici mon code



Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ColumnClick event handler.
privatevoid lvwResult_ColumnClick(object o, ColumnClickEventArgs e)
{
// Set the ListViewItemSorter property to a new ListViewItemComparer 
// object. Setting this property immediately sorts the 
// ListView using the ListViewItemComparer object.
this.lvwResult.ListViewItemSorter = newListViewItemComparer(e.Column);
}
}

classListViewItemComparer : IComparer<String>
{
privateint col;
public ListViewItemComparer()
{
col = 0;
}
public ListViewItemComparer(int column)
{
col = column;
}
publicint Compare(object x, object y)
{
returnString.Compare(((ListViewItem)x).SubItems[col].Text, ((ListViewItem)y).SubItems[col].Text);
}
}