我得到一个
InvalidCastException was unhandled by user:
Conversion from String "ORDERDATE" to type "Integer" is not valid.
当它到达带有band.SortedColumns
. 知道为什么我会收到此错误吗?
我有相同的代码infragistics UltraWinGrid
vb.net
,但我没有收到该错误。
UltraWebGrid1.DataSource = Nothing
myDataName = Generic.getPrevOrder(dt, username)
UltraWebGrid1.DataSource = dt
Dim band As Infragistics.WebUI.UltraWebGrid.UltraGridBand = UltraWebGrid1.DisplayLayout.Bands(0)
UltraWebGrid1.DisplayLayout.ViewType = Infragistics.WebUI.UltraWebGrid.ViewType.OutlookGroupBy
band.SortedColumns.Add(band.Columns("ORDERDATE"), True)
band.SortedColumns.Add(band.Columns("ORDERID"), False)