There is no real easy way to do this, Cemal. What I would suggest is to have a GridProperties table and code in the QueryUnload of a form with a grid to look for a row in the table for the grid and store the desired property settings. You then need code in the Init of the grid to restore those settings. The key values for the table would be formname, gridname, and property.
>I want that my grids comes same after a user has chance the grids rows or columns settings.Maybe the lenght or the column order.
>When i close the form next time coms my grids not same.Thanks.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05