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

Accessing the insertion row in code

Sort Posts: Previous Next
  •  04-22-2008, 10:25 AM Post no. 11650

    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.
     

  •  04-22-2008, 1:05 PM Post no. 11656 in reply to 11650

    Re: Accessing the insertion row in code

    If you want to get a reference to the InsertionRow in the headers of a grid, you will need to handle the InsertionRow's Loaded event and retrieve the reference there.
    Technical Writer - Xceed Software

    Of all the things I've lost, I miss my mind the most. - Mark Twain
    Filed under: ,
  •  04-24-2008, 3:33 PM Post no. 11718 in reply to 11656

    Re: Accessing the insertion row in code

    Worked great, thanks!
  •  06-12-2008, 8:09 AM Post no. 12899 in reply to 11718

    Re: Accessing the insertion row in code

    Stupid question maybe but:

     How can I do that? I do not see the insertion row as a source for events?

     

    Regards

    Klaus

View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.