Adding a Row to a DataGridView with a string that contains all the parameters
Posted on 2016-09-16
strRowData is a string variable that contains all the parameters for the Add method. It's value is "22,1,0,1,0,1,1,1", but the statement "DataGridView1.Rows.Add(strRowData)" tries to set the first column to "22,1,0,1,0,1,1,1" rather than the first column to "22", the second column to "1", etc. How can I run the statement given that one string contains all the parameters? Is there a way to run dynamic code in vb.net?