Welcome to the Xceed Community Sign in | Join | Help
Community Search  

Accessing the insertion row in code

  •  04-22-2008, 10:25 AM

    Accessing the insertion row in code

    Hi,

     I want to be able to access an insertion row from C# code. Specifically, from inside a method that handles an event fired from a cell editor control.
     

    In our application, we have a control that allows a user to query the database for a valid value. For example, if they know a product code they may type it in directly, otherwise, a popup window appears that allows them to search. Either way, the control validates the input and fires an event if it is valid. We use this control as a cell editor in a grid, and have a handler for the event that fires after validation. Additionally, we have sub-classed both the insertion row and insertion row cells to allow us to view data in the cells before the entire row is committed.

     The dilemma is that I cannot find a way to reference the insertion row from the event handler. Most of my efforts have centered around trying to use the GetContianerFromItem method of the data grid control, but I have been unable to get this to work. Thanks in advance for any advice or suggestions.
     

View Complete Thread
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.