kkemerait
Member
Using a Linq statement to select objects from a custom collection
.
The funtion is as follows...
The "Query" returns to the winform correcly populated with 5 rows and two columns per row ... however... when I bind it to a grid ....
no data displays (it works fine when bound to a combobox however)
if I add a column manually to the grid .. I can see there are 5 rows after binding but still no data displayed .... thoughts?
VB.NET:
Private Items As New Generic.List(Of T)
The funtion is as follows...
VB.NET:
Public Function AllChildren() As Generic.IEnumerable(Of T)
Dim Query = From Child As T In Items Select Child
Return Query.ToList
End Function
The "Query" returns to the winform correcly populated with 5 rows and two columns per row ... however... when I bind it to a grid ....
VB.NET:
Datagridview1.DataSource = MyUser.Queues.AllChildren
no data displays (it works fine when bound to a combobox however)
if I add a column manually to the grid .. I can see there are 5 rows after binding but still no data displayed .... thoughts?