J
j-in-uk
Hi,
I have a table with 2 columns and a one dimensional string array.
I need to copy the string array to the table but I think I have to
convert my string array to a 2dimensional array first with an
incremental id inorder to add to table. any suggestions how to? thanks
DataTable dtContinent = ds.Tables.Add("Continent");
DataColumn dtContinent_ID = dtContinent.Columns.Add("ID", typeof(int));
DataColumn dtContinent_Name = dtContinent.Columns.Add("Name",
typeof(string));
\\string of names
_albumList = FileManager.GetAlbumNames(_photosPath);
\\error cos has only one col
dtContinent.Rows.Add(_albumList)
I have a table with 2 columns and a one dimensional string array.
I need to copy the string array to the table but I think I have to
convert my string array to a 2dimensional array first with an
incremental id inorder to add to table. any suggestions how to? thanks
DataTable dtContinent = ds.Tables.Add("Continent");
DataColumn dtContinent_ID = dtContinent.Columns.Add("ID", typeof(int));
DataColumn dtContinent_Name = dtContinent.Columns.Add("Name",
typeof(string));
\\string of names
_albumList = FileManager.GetAlbumNames(_photosPath);
\\error cos has only one col
dtContinent.Rows.Add(_albumList)