Q:

How do I organize strings into a table in visual c#?

I was trying to sort up strings into grids in Visual c#, but couldn't do it. What code do I need to do so?
I've already tried going to many websites and writing the code specified, but it did not work.
I was expecting at least something, but all I got was a blank table when I copied code from a website.
private void Form1_Load(object sender, EventArgs e)  
{   
   // TODO: This line of code loads data into the 'vendorDataSet.Vendor' table.   
   // You can move, or remove it, as needed.  
   this.vendorTableAdapter.Fill(this.vendorDataSet.Vendor);  
}

A:

If I understood what you want: You have some strings (ie in an array) and you want to insert them into a DataTable.
DataTable dt = new DataTable();
dt.Columns.Add("Column1",typeof(string));
foreach(string str in yourStringArray){
  DataRow dr = dt.NewRow();
  dr["Column1"]= str;
  dt.Rows.Add(dr); 
}

