views:

65

answers:

1

I would like to use the word wrapper for datagrid header, the problem is that it cuts the word to a new line, what i need is to add - sign after the word cutted...

what i mean is:

admins-
trator

+1  A: 

you'll have to extend the DataGridHeader class to do this manually, then assign it as the headerRenderer on all your DataGridColumns.

This isn't a trivial task. You'll need to use line metrics to establish the length of the string, split it up yourself and add the requisite "-".

Gregor Kiddie
ok.. thanks for the answer.. i thought its related to word wrapper property, and thought i need to override the default wrapper.. dont you think this is possible????
seismael
It's certainly possible, but the standard word wrap functionality is very dumb and it's a much bigger job than it should be to change.
Gregor Kiddie