Iamthestig
Programmer
Hi,
I have a column in a Janus datagrid that shows dates as a string in the format 'mm/yyyy'.
04/2004
03/2006
01/2005
03/2005
01/2008
When I sort this column by clicking the column header I get this result
01/2005
01/2008
03/2005
03/2006
04/2004
which is obviously not want I want. I have been told I need to implement the IComparer interface and use an instance of that class as the SortComparer property of the column. For example:
Me.GridEX1.RootTable.Columns("X").GroupComparer = New MyCustomComparer()
Does anyone know how I go about constructing this class in VB.Net? I would normally try and work this out myself but I'm short of time. Many thanks,
John
I have a column in a Janus datagrid that shows dates as a string in the format 'mm/yyyy'.
04/2004
03/2006
01/2005
03/2005
01/2008
When I sort this column by clicking the column header I get this result
01/2005
01/2008
03/2005
03/2006
04/2004
which is obviously not want I want. I have been told I need to implement the IComparer interface and use an instance of that class as the SortComparer property of the column. For example:
Me.GridEX1.RootTable.Columns("X").GroupComparer = New MyCustomComparer()
Does anyone know how I go about constructing this class in VB.Net? I would normally try and work this out myself but I'm short of time. Many thanks,
John