Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
394
Event during TemplateOnBottom
posted

I would like to know when the new row is visible to the user when using AllowAddNew.TemplateOnBottom.

 

My situation: I have a grid bound to a binding source that uses a class object. My instructions are to create a row at the end of the grid that is used for adding new data. Setting AllowAddNew.TemplateOnBottom does exactly what I want, except that I have no idea how to know when the new row has actually been created in the grid. The catch here is that the user has requested that the first cell contains the button that initiates the Edit mode.

The user clicks the Add button and then cell enters Edit Mode

However, the moment I type the first character a new row appears and I want to be able to know when this happens - is there an event that can capture this?

Thanks in advance. I am looking for any way I can know the moment this new row appears in the grid, as I cannot find an event that fires at this moment. Only the Before/AfterRowUpdate that fires when the row is deactivated.

I was originally going to capture this state in the AfterExitEditMode event, but this is also fired when the Escape kep is hit, so that doesn't mean a row is created when at figure 2. I have an idea of how to get around this, but I wondered if there was a simple way? Perhaps an event I've missed, or a DrawFilter interrupt I can add?