Reputation: 2811
I'm trying to increase decrease the size of the font in the cells of a DevExpress GridView. I know that the event is probably
private void gridView1_MouseWheel(object sender, MouseEventArgs e) {}
Does anyone have experience implementing this functionality?
I've looked around on Google and found this: http://www.devexpress.com/Support/Center/p/Q20861.aspx
But when I add this code to my solution I get errors about Point, GridView, and Font missing references and using directives.
Can anyone help?
Upvotes: 0
Views: 2877
Reputation: 807
in properties click on the Columns property and if it has column,db-click on the columns name and select
CellStyleand change
Fontproperty such you can change
HeaderStyle` and so on
Upvotes: 0
Reputation: 266
From the code you mentioned from the page i made a small modification and it works for me.
GridView v = sender as GridView;
For GridView you have to add this,
using DevExpress.XtraGrid.Views.Grid;
With this code you won't need to use mouse location using Point
class
Upvotes: 1