11-16-2012 01:25 AM - edited 11-16-2012 01:26 AM
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.........
11-16-2012 07:49 AM
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:
11-19-2012 03:04 AM
Hi Simon,
this works ! 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?!
11-19-2012 08:18 AM
@_EMG_ wrote:
Hi Simon,
this works
! 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?