And then the input data, from the first line of input automatically? Thank you
Figure 1:
Figure 2:
CodePudding user response:
DataGridView1. ColumnCount=5;//data telemetry line 16
//this. DataGridView2. ColumnCount=32;//remote communication line 32 data
int i;
For (I=0; I & lt; Tcp104. Ycnum; I++)
{
Enclosing dataGridView1. Rows. The Add ();//256
//this. DataGridView2. Rows. The Add ();//this. DataGridView2. Rows. The Add ();//512
}
DataGridView1. AutoResizeColumns ();
This. DataGridView1. ClipboardCopyMode=DataGridViewClipboardCopyMode. EnableWithoutHeaderText;
DataGridView1. AlternatingRowsDefaultCellStyle. BackColor=Color. Linen;//LemonChiffon;//odd lines background
//dataGridView1 BackgroundColor=Color. White;//controls the background color in
DataGridView1. Columns [0]. Name="serial number".
DataGridView1. Columns [1]. Name="telemetry Name";
DataGridView1. Columns [2]. Name="multiplying factor";
DataGridView1. Columns [3]. Name="except the coefficient";
DataGridView1. Columns [4]. Name="telemetry values";
DataGridView1. Columns [0]. Width=60;
DataGridView1. Columns [1]. The Width=150;
DataGridView1. Columns [2]. Width=60;
DataGridView1. Columns [3]. The Width=60;
DataGridView1. Columns [4]. The Width=130;
CodePudding user response:
First, you can increase the DataRow. Add, let it present the feeling of Excel,Second, save, delete the blank line, and only save data lines,
Third, data lines, open again is editing,
That's probably thinking