Hi, so there is a behavior for the "add" row in a grid at the moment someone enters text in a cell. It moves the new row into the actual result set (changing its color from gray to white) and initializes all of the cells (so if a cell is decimal type, it defaults to 0).
Is there an event attached to this behavior? I want to have it where the second they type text into a cell, it poplulates other cells with custom default values. Right now, I am using the BeforeRowUpdate event, but it only fires when they click off of the newly added row.
Hello,
I believe that the row 'moves' into the actual result set when you click in it. In this case the 'BeforeRowInsert' event of the 'UltraGrid' control will be fired.
Please do not hesitate to contact us if you need any additional assistance.
Hi Boris,
Thanks for the reply. I tried the BeforeRowInsert event, and it fires when the user clicks in a cell in the new row. I was hoping for an event that fired once they actually entered text into a cell in the new row.
If the user clicks in the new row, and then clicks off of it without entering text, it doesn't insert the row. However, if they enter text (even if they then delete the text), it inserts the row.
I tried the AfterRowInsert and when I debug, it appears to fire at the same time as the BeforeRowInsert - right when the user clicks inside the row. At this point, they have not committed to inserting the row. If they click on a different row, the new row isn't inserted.
Do you know if there is another event that fires when they actually enter text into the new row? My impression is that the AfterRowInsert event should fire at that time.
Then you could try 'CellChange' event if those are your requirements.
Sorry I didn't respond sooner. I didn't realize that there was a reply until just now.
That was exactly what I needed. Thank you.