DataTable dtProcess = ObjAudit.GetUserNamebyAuditID(result).Tables[1]; string process = ""; for (int i=0;i { if (process.Length > 0) process += ","+ dtProcess.Rows[i]["ProcessName"].ToString(); else process += dtProcess.Rows[i]["ProcessName"].ToString();
Loop Through Dataset foreach (DataRow row in dtauditusers.Tables[0].Rows) {
if (row["IsAuditLead"].ToString() == "True") { DataTable dtProcess = ObjAudit.GetUserNamebyAuditID(result).Tables[1]; string process = ""; for (int i = 0; i < dtProcess.Rows.Count; i++) { if (process.Length > 0) process += "," + dtProcess.Rows[i]["ProcessName"].ToString(); else process += dtProcess.Rows[i]["ProcessName"].ToString();
Loop Through Dataset
ReplyDeleteforeach (DataRow row in dtauditusers.Tables[0].Rows)
{
if (row["IsAuditLead"].ToString() == "True")
{
DataTable dtProcess = ObjAudit.GetUserNamebyAuditID(result).Tables[1];
string process = "";
for (int i = 0; i < dtProcess.Rows.Count; i++)
{
if (process.Length > 0)
process += "," + dtProcess.Rows[i]["ProcessName"].ToString();
else
process += dtProcess.Rows[i]["ProcessName"].ToString();
}
}