A
av
Hi,
I'm at a loss on this one. I have a generic method for returning
lookupdata in a datatable X with 2 columns (ID, DESC). The X has a
X.DefaultView.Sort = "DESC". I add rows from the table to a combo by
cycling through the defaultview - so I can get them in sort order. My
problem is that the defaultview is returning a count of zero even
though there are rows in the table. If I then set the sort order to
blank, then suddenly the defaultview.Count = X.rows.count.
The really weird thing is that this code has worked for ages with no
changes. I havent' installed any new framework software and the code
hasn't changed at all. Has anyone experienced this? Would appreciate
any help
regards
avner
I'm at a loss on this one. I have a generic method for returning
lookupdata in a datatable X with 2 columns (ID, DESC). The X has a
X.DefaultView.Sort = "DESC". I add rows from the table to a combo by
cycling through the defaultview - so I can get them in sort order. My
problem is that the defaultview is returning a count of zero even
though there are rows in the table. If I then set the sort order to
blank, then suddenly the defaultview.Count = X.rows.count.
The really weird thing is that this code has worked for ages with no
changes. I havent' installed any new framework software and the code
hasn't changed at all. Has anyone experienced this? Would appreciate
any help
regards
avner