To Assign Column Headers For msFlexGrid
MSFlexGrid.Clear
MSFlexGrid.Rows = 2
MSFlexGrid.TextMatrix(0, 1) = "Header1"
MSFlexGrid.TextMatrix(0, 2) = "Header2"
MSFlexGrid.TextMatrix(0, 3) = "Header3"
MSFlexGrid.TextMatrix(0, 4) = "Header4"
MSFlexGrid.TextMatrix(0, 5) = "Header5"
MSFlexGrid.TextMatrix(0, 6) = "Header6"
MSFlexGrid.TextMatrix(0, 7) = "Header7"
After assigning headers to the msFlexGrid Add the data from the textbox as shown below
MSFlexGrid.TextMatrix(0, 1) = Trim(txtText1.Text)
MSFlexGrid.TextMatrix(0, 2) = Trim(txtText2.Text)
MSFlexGrid.TextMatrix(0, 3) = Trim(txtText3.Text)
MSFlexGrid.TextMatrix(0, 4) = Trim(txtText4.Text)
MSFlexGrid.TextMatrix(0, 5) = Trim(txtText5.Text)
MSFlexGrid.TextMatrix(0, 6) = Trim(txtText6.Text)
MSFlexGrid.TextMatrix(0, 7) = Trim(txtText7.Text)
Hope It Will Help You.
Feel Free To Ask If Any Further Queries