Re: Implement Icomparable
- From: "tommaso.gastaldi@xxxxxxxxxxx" <Tommaso.Gastaldi@xxxxxxxxx>
- Date: 16 Dec 2006 17:12:10 -0800
Hi Jim, I guess it's because for some types you have there isn't a
default comparer (like you have, for instance, for most numerical types
and strings ).
What do those columns contain (what's the datatype) ?
-T
Jim ha scritto:
Creating a datagridView with a dataReader. Why do I get this message
when I click on the column header (some, but not all the column
headers) to sort??
sqlDR = sqlCMD.ExecuteReader
Dim intCol As Integer
With sqlDR
If .HasRows Then
DataGridViewProducts.Rows.Clear()
For intCol = 0 To .FieldCount - 1
DataGridViewProducts.Columns.Add(.GetName(intCol),
.GetName(intCol))
Next
DataGridViewProducts.AutoSizeColumnsMode =
DataGridViewAutoSizeColumnsMode.ColumnHeader
While .Read
Dim objCells(intCol) As Object
.GetValues(objCells)
DataGridViewProducts.Rows.Add(objCells)
End While
.Close()
End If
End With
.
- Follow-Ups:
- Re: Implement Icomparable
- From: Jim
- Re: Implement Icomparable
- References:
- Implement Icomparable
- From: Jim
- Implement Icomparable
- Prev by Date: struggling to get correct runtime/designtime dpi values
- Next by Date: How to put shell output into a textbox
- Previous by thread: Implement Icomparable
- Next by thread: Re: Implement Icomparable
- Index(es):