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
85
Changing WinGrid font dynamically
posted

I need to change WinGrid Font on the fly. The ideal scenario would be to just assign a new font to the Font property and the grid would refresh itself with the new font. Can't get it working, very strange. Please advise.

Parents
  • 3707
    Verified Answer
    posted

    You almost had it. Look at the code below and you'll see where to set the font name.

    grid.DisplayLayout.Appearance.FontData.Name = "Arial Black";

Reply Children
No Data