A
AlveenX
Hi,
I am trying to pick a Guid from a data row using the following code:
foreach(DataRow row in MyDataTable.Rows)
{
(Guid)row["ID"]
}
However, this is the error I'm getting: System.InvalidCastException:
Specified Cast is not Valid. Do you know how I can cast the row entry
so that I end up retrieving the Guid?
Thanks,
Alveen
I am trying to pick a Guid from a data row using the following code:
foreach(DataRow row in MyDataTable.Rows)
{
(Guid)row["ID"]
}
However, this is the error I'm getting: System.InvalidCastException:
Specified Cast is not Valid. Do you know how I can cast the row entry
so that I end up retrieving the Guid?
Thanks,
Alveen