Zolt
Zolt

Reputation: 2811

Increase and decrease font size in DevExpress gridview using mouse

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

Answers (2)

Chakavak Behzad
Chakavak Behzad

Reputation: 807

in properties click on the Columns property and if it has column,db-click on the columns name and selectCellStyleand changeFontproperty such you can changeHeaderStyle` and so on

Upvotes: 0

Krishnakumar
Krishnakumar

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

Related Questions