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
1705
What's the best way to make rows bold/not bold at runtime?
posted

Depending on the data, some rows need to be bold and some not bold.  Right now I'm using:

e.Row.CellAppearance.FontData.Bold = Infragistics.Win.DefaultableBoolean.True;

 to make a row bold.  But the problem is, the rows that AREN'T bold then have a little icon of a pen in the RowHeader area, as if someone is editing them.  How can I avoid this pen stuff?

Parents
No Data
Reply
  • 469350
    Offline posted

    If you are seeing a pencil icon on a row, then something is editing the data in that row. There is no reason why setting the Font to bold should have any effect on this.

    My guess is that you have an unbound column in your grid and you are populating the values of the cells in tis column in code. What you should do in a case like this is call Update on the row after you make the changes. This commits the changes to the row so it no longer has pending changes. 

Children
No Data