Ilkin Turk

Ilkin Turk

  • NA
  • 349
  • 161.9k

DataTable

Mar 19 2013 5:59 PM
Hello

I tried add values to datatable below code.But it just add only ones ,and the same value.I need to add values from parameter.

public DataTable  create_table ( string a)
{
  DataTable dt = new DataTable();
            dt.Columns.Add("Fields",typeof(String));
            dt.Rows.Add(new object[] { a });
            return dt;
}
thanks in advance.

Answers (5)