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
teegrid for displaying measured data
Re: teegrid for displaying measured data
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:
The method connects to data housed in classes.
Regards,
Marc Meumann
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....
}
Regards,
Marc Meumann
Steema Support