C1 True DB Grid - caption different from column name, not displayed properly

unshaven

Newcomer
Joined
Oct 12, 2004
Messages
10
Location
europe
hallo,

does anyone here use ComponentOne stuff for .NET?

I put in the Column Collections for c1TrueDBGrid the column names (data fields) and captions, which differ from each other (fieldname/caption, respectively). In the forms editor, the CAPTIONs are correctly shown, but at run time the field names and not the captions are shown in the caption fields.
Why??
The C1 help file says that what's in the 'Caption' value gets displayed as the caption... no mention of the real column name...

Anyone knows what's up?

thanks,
unshaven
 
note, that what I want to do is displaying a caption different from the actual column name, and, because of the lack of a 'MappingName' property in the ComponentOne TrueDBGrid (unlike the standard one that comes with VS .NET),
I specified both, column name and caption.

The help file says that if a column is bound, the column names will be automatically set according to what is found in the table.
But if you specify both, a column name AND a caption, it would make sense if the caption is used anyway...
Alas, the help doesn't explicitly talk about this case...

there seems to be no MappingName like in the MS .NET DBgrid...
If I overwrite the caption property at runtime, the correct text is displayed BUT suddenly it's aligned to the right edge.. what the hell ? (only when I just do something like ...Columns[0].Caption = "blah", this happens. I did not change any other properties.)
 
Back
Top