>Hello,
>
>I'd like to change the backcolor property of textbox in a grid whenever the user clicks in the textbox in question.
>
>I've added the following to the click event of the textbox (along with someother code).
>
>ThisForm.Stgrid1.Column7.Text1.backcolor = rgb(255,0,0)
>thisform.refresh
>
>Unfortunately it only changes the backcolor to red while the mouse is actually on the textbox with the left mousebutton depressed.
>
>As soon as the user releases the mousebutton the backcolor returns to its original color.
>
Look at the DynamicBackColor property of the column - there are grid classes here on UT that use them, and there's sample code in the help file describing how it works.