Hello all
foreach(DataTable myTable in m_DsConfig.Tables)
{
if(myTable.TableName == "DataSourceCodeView")
{
len = myTable.Rows.Count;
}
}
I am trying to get the number of rows in a datatable that
is contained by a dataset. I am always getting a value of
zero for the number of rows and I know that is not correct.
Can you help me with using the correct property or method?
I am trying to get a valid count from the following piece
of code also. But no success so far.
foreach(DataTable myTable in m_DsConfig.Tables)
{
if(myTable.TableName == "DataSourceCodeView")
{
DataRow[] Rows = myTable.Select("Parameter
= 'MyTestParam'");
int len = Rows.Length;
}
}
Thanks a lot for your help.