Skip to content

Instantly share code, notes, and snippets.

@amitapl
Created August 23, 2012 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitapl/3443183 to your computer and use it in GitHub Desktop.
Save amitapl/3443183 to your computer and use it in GitHub Desktop.
public void SetListViewHeader()
{
_ds = new DataSet();
DataTable table = new DataTable();
_ds.Tables.Add(table);
DataColumn col = new DataColumn("Name", typeof(string));
table.Columns.Add(col);
col = new DataColumn("Date", typeof(DateTime));
table.Columns.Add(col);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment