I have this code
foreach (DataRow row in DTgraph.Rows)
{
String UserName = row["UserName"].ToString();
String LoggedState = row["LoggedState"].ToString();
String InteractionId = row["InteractionId"].ToString();
String InteractionType = row["InteractionType"].ToString();
}
how to check if the row["something"]
is null?
I tried to run the code, and the null values becomes "" (empty).
I need to check if these is null.
I now that this is an stupid question, but my problem is that I am making ToString()
so i thought that null becomes null
or NULL
or Null
or empty?
thanks