Chaim,
Are you wanting to color the rows of the grid showing xtabresult?
say your code is like this:
do (_genxtab) ...
with thisform.grxXtab
.RecordSource = "xtabresult"
.SetAll( "DynamicForecolor", "thisform.RowColor()", "column" )
ednwith
>The user enter some invoice name in the 'txtspmnt' text box.
>I have a method that taking the value and creating cursor and populating it with data who based on this value.
>after that I doing a genxtab query on this cursor.
>the genxtab query entered to new cursor - xtabresult.
>this cursor is the record source for the grid.
>this cursor not existed in the form/init.