I don't use bound controls of any sort by I would image it would be a part of the grid's property page.
|
|
What would be the most efficient way to find the grid a collection is bound to. Is there a way to use databinding to return the control a collection is bound to?
I need a method like GetBoundGrid(myCollection) that returns a datagridview.
This method will be on our EntryFormBase form. This is a 3 panel form consisting of a search area, search results (MainGrid) and a detail section. This base forms handles all the logic for adding, saving and deleting data. (Bad design I know but it's what I inherited.) If I know the current collection I need to determine the grid it is bound to.
The app I am currently working on was created using VS2003 before binding sources were available so it is bound old school.
I don't use bound controls of any sort by I would image it would be a part of the grid's property page.
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Good Article: Language Enhancements In VS 2010
Microsoft MVP 2005/2006/2007/2008/2009/2010
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks