DataSet >> DataTable >> DataRows with have values corresponding to DataRow
Not sure if there is a method for DataSet or DataTable which allows you to
do so but here's one way i think you can do it.
int RowCount = yourDataTable.Rows.Count;
int ColumnCount = yourDataTable.Columns.Count;
string [rowCount][ColumnCount]
for(int i = 0; i <RowCount; i++)
{
for(int j=0; j < ColumnCount; j++)
{
string[i][j] = yourDataTable.Rows[i][j].ToString();
}
}
--
Regards,
Hermit Dave
(
http://hdave.blogspot.com)
"alpesh sharma via .NET 247" <an*******@dotnet247.com> wrote in message
news:uI**************@TK2MSFTNGP09.phx.gbl...
(Type your message here)
how to retrieve dataset value one by one in an array of string.
--------------------------------
From: alpesh sharma
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>tHD0uWyhDEeF3lf7xZsbdw==</Id>