Results 1 to 2 of 2

Thread: Finding a bound grid.

  1. #1
    digitaldan3 is offline VB.NET Forum Newbie
    .NET Framework
    .NET 3.5 (VS 2008)
    Join Date
    Jun 2005
    Posts
    7
    Reputation
    0

    Finding a bound grid.

    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.

  2. #2
    Hack's Avatar
    Hack is offline VB.NET Forum Master
    .NET Framework
    .NET 3.0 (VS 2005/2008)
    Join Date
    Apr 2009
    Location
    Sterling Heights, MI
    Posts
    336
    Reputation
    77
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO