ListView - Details view - Increase font size

M

Mike

I've searched the archives and a couple of people said you CAN change the
font size of ListView text, others say you CAN'T. The people that said you
CAN didn't provide any code. Can I increase the font size of text in my
ListView in Details view? (please provide VB code if possible)

I've considered using the DataGrid, but that seems more complicated. Do you
need to use ADO.NET objects to display data in a DataGrid? How does that
work with the CF?
 
J

jez

Hi Mike,

I was thinking of using ListView at first but then used the DataGrid as it
provides like a billion more options. I would strongly recommend using the
DataGrid (this is a non-professional advice:p). From my experience I'd say
the DataGrid is a pretty good way of showing data. It's a little difficult
for starters but once you get the hang out of it you'll be able to get the
most out of it.

As far as I'm aware of you need to bind/set the source of the DataGrid to a
DataTable. There are a couple of good websites that explain the DataGrid.
Have a look at gotdotnet's quick guide :
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/datagridadding.aspx .

jez
 
M

Mike

Thanks for the advice. Have you used the ListView also? I'm using the
ListView now and it seems OK now that I figured out you can change the Font
property despite Microsoft reps saying that you can't.


jez said:
Hi Mike,

I was thinking of using ListView at first but then used the DataGrid as it
provides like a billion more options. I would strongly recommend using the
DataGrid (this is a non-professional advice:p). From my experience I'd say
the DataGrid is a pretty good way of showing data. It's a little difficult
for starters but once you get the hang out of it you'll be able to get the
most out of it.

As far as I'm aware of you need to bind/set the source of the DataGrid to a
DataTable. There are a couple of good websites that explain the DataGrid.
Have a look at gotdotnet's quick guide :
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/datagridadding.aspx .
 
O

Ofer B.

this.listView1.Font = new Font(FontFamily.GenericSansSerif , 10,
FontStyle.Regular );
 

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

Top