>how ca i make my textbox value appear on my grid if i click my cmd button? please can u give me the exact code i'm new in vfp!!
>
>my textbox name is txtscode and my grid name is sublist?
Virgilio,
Textboxes in grid have a controlsource (except those in container). ie: If column controlsource is 'customer.company' instead of trying to set value of texbox, directly change customer.company and refresh grid. Something like :
replace company with 'New company' in 'customer'
thisform.Sublist.refresh
However you can still do it via value :
with thisform.sublist
.txtscodecolumnname.txtscode.value = 'Somevalue'
.refresh
endwith
Cetin