If you mean you want to cast a
MySqlDataReader
to a
DataRow
, I dont think this is possible. You may, however, want to put the values of the data reader to an array or a collection, depends on your situation. Hope this example helps
while (reader.Read())
{
if (reader["user_name"] == "SoAndSo")
{
for(int i = 0; i < reader.FieldCount; i++)
{
myArray[i] = reader[i];
}
break;
}
}