I have a Windows Form application. I have a DataGridView that I would like to bind (ultimately) to an LLBLGen Collection. When editing some of the columns I would like to use ComboBoxes bound (ulitmately) to filtered and sorted LLBLGen Collections.
Could someone explain in simple terms the best practice steps required to bind the DataGridView and Combo boxes. Should I be:
-
Dragging my LLBLGenPro created DAL dll onto the toolbox, then dragging the collections onto my form then binding the grid and combo boxes to these?
-
Adding a bindingSource, connecting that to a collection and binding the grid to the bindingSource. Should the Collection be created through Data - Add New Data Source?
-
Using some other method?
If I want to be able to apply a sort and filter to the combo box data sources, where should this be done?
I am not sure the best practice way of doing this in 2012 with my setup of LLBLGenPro v3.5, C#, VS2010 (or VS2012) and .NET framework 4 or above.
I used option 1 with some success but kept getting errors when trying to open the Windows Form designer which I could only fix by re-adding the DAL .dll to the toolbox (surely this isn't necessary)
(coming from ASP.NET forms, this WinForms stuff is all a bit alien at the moment!)
Any help, or just a pointer to the most up to date document describing how to do this, would be gratefully received.