LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using .NET DataGrid in LabVIEW

Hi,

 

for showing large string arrays in LabVIEW I want to use a .NET DataGrid. Attached is a VI which reads out a (example) database, so far so good.

 

But how is it possible to set i.e. font, font size etc?! The property nodes are read only?!

Is it possible to index one complete column and place it in a (LabVIEW-)array?

 

I'm using LV2009 and LV2011, the attached VI is done by LV2011.

 

 

Thanks for you help in advance.........

0 Kudos
Message 1 of 4
(3,882 Views)

To answer your font question -- I don't think you can change properties of an existing font but you can apply a new font.  Use the Font constructor (found in System.Drawing.Font) to create a font with the properties you want and then apply that to your DataGridView, like so:

 

Screen Shot 2012-11-16 at 7.46.47 AM.png

0 Kudos
Message 2 of 4
(3,853 Views)

Hi Simon,

 

this works Smiley Happy ! I think my problem is that I can't make head or tail with the .NET libs. There is just too much of stuff containing in the framework..

 

But one question is left, how is it possible to index one column or row? Is it possible to use SQL queries to access a datagrid?!

0 Kudos
Message 3 of 4
(3,830 Views)

@_EMG_ wrote:

Hi Simon,

 

this works Smiley Happy ! I think my problem is that I can't make head or tail with the .NET libs. There is just too much of stuff containing in the framework..

 

But one question is left, how is it possible to index one column or row? Is it possible to use SQL queries to access a datagrid?!


 

Usually SQL queries are used to populate a datagrid.

 

Why are you insisting on using something you are not familiar with? What is wrong with LabVIEW's built-in Table Control?

0 Kudos
Message 4 of 4
(3,821 Views)