displayname in collection of strings

Grids for WPF Forum

Posted 12 years ago by Mary Fontana - Rudolph Technologies
Avatar
The display name for say a collection of strings is index, such as [0], [1], [2], etc. How would I make this start at 1 instead of 0?

Thanks,
Mary

Comments (2)

Posted 12 years ago by Mary Fontana - Rudolph Technologies
Avatar
I think I have a solution.
ExpandableCollectionConverter.ListPropertyDescriptor has an Index property.

I can override DisplayName and use Index+1;
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mary,

Yes, that is correct. You may want to use "string.Format(CultureInfo.CurrentCulture, SR.GetString(SRName.UIExpandableCollectionConverterIndexFormat), index)" so you can retain the localization support built in.


Actipro Software Support

The latest build of this product (v24.1.2) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.