Hi,
I have to convert c# to VB but could not manage to do it.
Any help would be great.
Thanks in advance.
Best Regards.
DataSet ds = new DataSet();
int b = (from objds in ds.Tables.Cast<DataTable>()
select FindRows(((DataTable)objds))
).Count();
private bool FindRows(DataTable dataTable)
{
DataRow b = (from objtbl in dataTable.Rows.Cast<DataRow>()
where Convert.ToBoolean(objtbl["isChecked"]) == false
select objtbl).FirstOrDefault();
if (b != null)
{
string str = b["ID"].ToString();
//set your values here
return true;
}
else
return false;
}
I have to convert c# to VB but could not manage to do it.
Any help would be great.
Thanks in advance.
Best Regards.
DataSet ds = new DataSet();
int b = (from objds in ds.Tables.Cast<DataTable>()
select FindRows(((DataTable)objds))
).Count();
private bool FindRows(DataTable dataTable)
{
DataRow b = (from objtbl in dataTable.Rows.Cast<DataRow>()
where Convert.ToBoolean(objtbl["isChecked"]) == false
select objtbl).FirstOrDefault();
if (b != null)
{
string str = b["ID"].ToString();
//set your values here
return true;
}
else
return false;
}