Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
340
Underline in xamdatagrid in code
posted

I have been searching the message boards for a technique for adding underline to specific cells in the xamdatagrid.  Haven't found a good solution yet.  Here is an example of what I am doing:

CellValuePresenter cvp;

foreach (Cell c in dr.Cells)
{
cvp = CellValuePresenter.FromCell(c);
if (cvp != null)
{
cvp.FontWeight = FontWeights.Normal;
cvp.FontStyle = FontStyles.Normal;
cvp.Foreground = Brushes.Black;
//need underline
}

Any advice?