Farhan Shariff

Farhan Shariff

  • NA
  • 933
  • 240.6k

Display List in windows forms application

Mar 24 2014 9:11 AM
I want to Display results of the list .
Is it possible to display the list in console (program is windows form)as list excludedNames has many  values. Which is the best way to display the result.?.
 
 Collapse | Copy Code
private void bt_compare_Click(object sender, EventArgs e)
{
table1 = GetDataTabletFromCSVFile(tbCSVPath.Text);  
table2 = GetDataTabletFromCSVFile1(tbCSVPath1.Text);
List<string> excludedNames = new List<string>();

        for (int i = 0; i < table1.Rows.Count; i++)
     {
          string col = table1.Rows[i]["Par Name"].ToString();

              if (!table2.Columns.Contains(col))
        {
              excludedNames.Add(col);
        }
      }
  }

Answers (6)