Hi all,
I am trying to bind a DataGridView in a winforms APP, but I am getting no data.
here is what I am doing.
I have a Entity Collection added to the form named "StopFlightCollection" which I dragged on from the tool box.
I have added a BindingSource called BsStopFlight and have set its datasource to the StopFlightCollection.
I have then set the DataGridView DataSource property to the BindingSource.
The Grid gets the structure of the collection i.e all the correct columns appear but when i run the project the grid is blank no data. If I bind the grid from code e.g
Public Shared Function GetFlightStopRules() As DataTable
Return StopFlightCollection.GetMultiAsDataTable(Nothing, 0, Nothing)
End Function
It all works fine, but thats not what I want. I am a bit of newbie to winforms so I know I am either doing something wrong or I am missing something. Also I have noticed that nothing appears in the DataMember dropdown for the bindingsource! is this why its not working.
Using the Latest Version of LLBL, VS2008, SQLServer 2005
Any Help would be great, thanks all.
Jason