Edbytes,
OK, now that we all understand the problem, we can discuss some solutions.
One approach would be for you to add an extra field to the table or cursor that's populating the grid. Keep the existing Name field, but have a new field called, say, DisplayName, that will populate the Name column.
Write some code to loop through the table, setting the contents of DisplayName equal either to Name, or to an empty string, depending on whether it's the same as in the previous record. Something like this:
Code:
lcPrev = "@@@@@" && impossible value
SELECT TheTable
SCAN
IF Name <> lcPrev
REPLACE DisplayName WITH Name
lcPrev = Name
ELSE
REPLACE DisplayName WITH ""
ENDIF
ENDSCAN
You than set DisplayName as the ControlSource of the column in which you want to suppress the repeating values.
For this to work, the table must be in Name order.
I haven't tested the above code, and can't guarantee that it is correct, but it should give you the general idea.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
My Visual FoxPro site: www.ml-consult.co.uk