Hi Neil,
I'm getting a little confused.
If sparse is .f. you will have the editbox in all cells in the column and the color will be the backcolor of the editbox.
If sparse is .t. you will only have the editbox in the cell with focus. For all the other cells the dynamicbackcolor will be used.
If you want to use the dynamicbackcolor, I suggest you set sparse to .t., but, so that the editbox color matches the dynamicbackcolor, set the backcolor in the gotfocus event of the editbox.
Hope this helps
Mace
>Hi Macer,
>You are correct. If I set sparse = .t., the backcolor responds to the dynamicbackcolor setting each time the grid is refreshed. However, I need the grid to display all of the editboxs in a column, not just the one I clicked on. Can you think of a way to have sparse=.f. but also to have the backcolor respond to the dynamicbackcolor setting?
>
>Thanx,
>Neil
>
>>Make sure that the column sparse property is set to .F. and that the grid is bound to some data.
>>
>>>Hi,
>>>
>>>Create a form (.SCX)and add a grid control with 1 column. Delete the default textbox. Now add an editbox in place of the textbox. Change the editbox.backgroundcolor to any color. The editbox with accept the new color when the form is run.
>>>But now create a new form (.vcx)based on a form class. Now add a grid and change the default textbox control to an editbox. If you change editbox.backgroundcolor to a color it is not displayed in that color at run time.
>>>
>>>An thoughts??
>>>Neil
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement