Hi Sung,
Does it really help?
>Thank you very much Nadya.
>
>>Hello Sung
>>
>>See thread Grid (rows Click() event ) Thread #
348655 for ideas.
>>HTH
>>
>>>
>>>Thank you vaery much Robin
>>>
>>>What I like to do is when a user select a report in a listbox, the grid is automatically changed its' properties with same commands (e.g. Click method of Header1 : messaagebox('ok')) in its' method.
>>>But the grid lost commands whenevr I changed it's properties.
>>>Is there any way that I can keep commands when I change a grid's properties?
>>>
>>>Wrting clear English sentence is another barrier to me but you know what I mean.
>>>
>>>>Are you closing the RecordSource for the grid? Closing the alias, cursor, output from SQL whatever the RecordSource will make the grid appear completely empty. If you need to re-popuplate the Recordsource, don't close it, do something like:
>>>>
>>>>Thisform.lockscreen = .T.
>>>>select Aliasname && RecordSource
>>>>Zap
>>>>append from Table
>>>>Thisform.lockscreen = .F.
If it's not broken, fix it until it is.
My Blog