teegrid for displaying measured data

TeeGrid .NET for Microsoft Visual Studio .NET.
Post Reply
BayCFR
Newbie
Newbie
Posts: 3
Joined: Fri Nov 12, 2021 12:00 am

teegrid for displaying measured data

Post by BayCFR » Wed Feb 09, 2022 6:32 pm

I will use teegrid to display a data table with measured data. It adds every second a new data row.
My datarow is a class like this:
public class MeasData
{
public ulong measIndex;
public DateTime dateTime;
public double[] result;
public short[] signif;

public MeasData(int size)
{
measIndex = 0;
dateTime = new DateTime();
result = new double[size];
signif = new short[size];

dateTime = DateTime.Now;
Array.Clear(result, 0, result.Length);
Array.Clear(signif, 0, signif.Length);
}
};
The double[] array can be of size 1 until size 1000, depending of the channels, which are measured.
My question: What is the best way to implement this in teegrid ?
Best Regards, Chris

Marc
Site Admin
Site Admin
Posts: 1063
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: teegrid for displaying measured data

Post by Marc » Wed Apr 20, 2022 7:56 am

Hello,

Apologies for the delay, I see this post was missed. You likely have found the solution but here are details of how the connection can be made:

See the example here:
https://github.com/Steema/TeeGrid-NET-S ... %20Editors

Form1 includes a method to connect to sample data:

Code: Select all

		private void CreateSampleData()
		{
			List<Person> carpersons = new List<Person>();
			MyData.FillMyData(carpersons, 10);

			tTeeGrid1.Data = new VirtualListData<Person>(carpersons);
			tTeeGrid1.Columns["BirthDate"].DataFormat.DateTime = "MM-dd-yyyy";
			tTeeGrid1.Columns["Height"].DataFormat.Float = "0.##";

			//extra code cut....
		}
The method connects to data housed in classes.

Regards,
Marc Meumann
Steema Support

Post Reply