Hello, can anyone help me. I hava a datagrid withd one column. I wanna fill the column with all the values that i get from a selection in mysql. The problem is that when i want to add a value on my datagrid(mysqlTable) in column 1, i get an exception. I can only add at index 0. As if i wheren't able to increase the size of rows.
res = mysql.hazConsulta("select * from consul;");
if(res.HasRows)
while (res.Read())
{
// here is when the exception happens, when i = 1
mysqlTable[i++, 0].Value = "" + res.GetString(0);
}
Can anyone help me??
res = mysql.hazConsulta("select * from consul;");
if(res.HasRows)
while (res.Read())
{
// here is when the exception happens, when i = 1
mysqlTable[i++, 0].Value = "" + res.GetString(0);
}
Can anyone help me??