>>Hi All,
>>
>>I have a two grids, one grid controls what is in the other grid, or is suppose to.
>>
>>the code I have in the AfterRowColChange method is this:
>>
>>LPARAMETERS nColIndex
>>DODEFAULT()
>>LOCAL llok, lcclient, laoption(1)
>>lcclient = ccontact.clientid
>>laoption[1] = ccontact.contactid
>>THISFORM.cpageframe1.page1.grid2.RECORDSOURCE = ""
>>llok = settables(lcclient, THISFORM.DATASESSIONID, "CRACT", @laoption)
>>THISFORM.resetgrids(.T.)
>>SELECT 'crscustmer'
>>THISFORM.REFRESH()
>>
>>
>>Any ideas why it is not working for me?
>>
>>If I comment out everything, but the 1st two lines, the first grids shows that it is on the other records.
>>
>>TIA,
>>Beth
>
>Hi Beth,
>
>You're doing something too complex here. Why do you need to reset recordsource for the grid? Also you don't have to explicitly call DODEFAULT(), you may comment it out, nothing will change.
I am resetting the recordsource for the 2nd grid. I put the DODEFAULT() in there because I was trying to get the grid ARCC to set the record pointer to the correct record, so that my contactid would be the correct one and let the other code get the correct records. At the moment, it stays on the first record, so the second grid never really gets changed.
Beth