|
Another C# problem
Why this's not working: (this's not the full code).
for (i = 0; i < dstTopics.Tables[0].Rows.Count; i++)
{
DataRow CatRow = dstTopics.Tables[0].NewRow();
CatRow["CategoryID"] = (int)dstTopics.Tables[0].Rows[i].ItemArray[0];
}
it gives me this error: Specified cast is not valid.
When i try this: Convert.ToInt32(dstTopics.Tables[0].Rows[i].ItemArray[0])
it gives me this error: Input string was not in a correct format.
when i try not using any cast type, it gives looooooooooooong error statment,
Thanks too much for help
__________________
i need a creative atmosphere
|