Hi,
i have some textboxes that filled with values on AfterRowActive event of a grid. but that textboxes wipe out on some event. now i want to refill textboxes with values, and i click on grid row but as its only the row in grid, its already active so does not fire AfterRowActive event.
and i was asked NOT to use solution like deactivate row and refire the event...i need solution like to set a single property or some better solution ...if u can help me plz
Hello Siddika,
If the UltraGrid has only one row, and its cells are connected with textboxes in some way, you could use AfterCellUpdate event of the UltraGrid, so this event will fire after you update each cell separately, so your Textboxes will be updated accordingly.
If you have any other questions with this matter please feel free to let us know.
textboxes are not connected to each cell of the row, but depending on One cell value, all textboxes getting filled. and after update clears all textboxes so that textboxes can b used for other rows in grid.
my grid have functionality to add rows so thr can b situation where thr is empty grid and user add a row(so only one row in grid and user wants to edit some data for the row and click on row so that textboxes gets populated but as it only the row its already active and does not fire AfterRowActive event). user can add multiple rows too.
I am still following this forum thread.
if you need any further assistance with this matter, or any other questions do not hesitate to contact us.
I am not sure that I understand your scenario completely. If you have an empty Grid, when you add a row, then the InitializeRow event will fire. If now you click on a cell, then the AfterCellActivate and AfterEnterEditMode events will fire. So once you update a cell and click on another cell, then you could use BeforeExitEditMode event of the UltraGrid, get the current Active cell value, and populate your text boxes, if this is the desired cell.
If I misunderstand your scenario please feel free to correct me.