overriding DataSource Property

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mironline
    New Member
    • May 2008
    • 24

    overriding DataSource Property

    Dear friends

    I have a problem with overriding the DataSource Property of DataGridView.

    I wonder if anyone can help me to find good solution for this issue .

    Code:
    public class  myGrid : DataGridView 
    {
      // how can I override the DataSource Property
    
    }
    Thank you .
  • nukefusion
    Recognized Expert New Member
    • Mar 2008
    • 221

    #2
    Hi mironline,

    Because the DataSource property is not exposed as virtual the only thing you can really do is shadow it using the "new" keyword. It might help to explain what you are trying to achieve as there may be a better solution.

    Comment

    Working...