G
Guest
Is there an easier way to query a dataset other than doing the following
code: I just want to set a variable based on the value of a input paramenter.
foreach(DataRow currentRow in dsAllData.Tables["WorkSheet"].Rows)
{
if (currentRow["WRKBK_CD"] == WorkSheet_Code)
{
WorkSheet_Name = currentRow["WS_NM"].ToString();
}
}
code: I just want to set a variable based on the value of a input paramenter.
foreach(DataRow currentRow in dsAllData.Tables["WorkSheet"].Rows)
{
if (currentRow["WRKBK_CD"] == WorkSheet_Code)
{
WorkSheet_Name = currentRow["WS_NM"].ToString();
}
}