I try to read the result of the query and discover if some of the columns is empty This is a way I started:
SqlDataReader rdr = cmd.ExecuteReader();
while (rdr.Read())
{
rdr["ColumnName"]; // how do I know if it has a value or empty
}
I thought to do :
dr[4].ToString() == String.Empty
It makes a needed work, but I don`t like this (it is a hack rather than solution) can you advise me how do I do it correctly and elegantly?