>Hi!
>
>When I changed the RecordSource of grid, codes in Click event were gone away. I have known it before. So, I made my class of grid and I put some codes in Click event. I created a form and add my grid class in it. The result was same as the prior result. codes were blanked.
>Is there a solution of keeping codes even if the recordsource is changed?
>
>Merry Christmas!! ^o^
You can use AddObject, i.e. in run-time after each change of recordsource, you will programmatically add (from your class) object (textbox, I guess) to grid.column
Edward Pikman
Independent Consultant