Underline a whole row for a particular row

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

Hi,
I have a datagrid which I want to underline some rows. However it doesn't
seem I can do it through setting the border property. How can I do it?

Please help. Thanks!
 
E

Elton Wang

You can do it in ItemCreated

if(condition){
foreach(TableCell cell In e.Item.Cells){
cell.Font.Underline = true;
}
}

HTH

Elton Wang
 
N

news.microsoft.com

This only underlines the texts in the grid. What I want is to underline the
whole row. It seems setting the border property is the only way.
Any thoughts?
 
E

Elton Wang

Hi there,

The border is not a horizontal line. You can't use it as a
crossing line. You might use other property, e.g.
background color, to mark a row in the datagrid.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,135
Latest member
VeronaShap
Top