Whenever I run this code I get back - System.Data.DataRowView. I don't understand what the problem. I have tried to looking here for solutions but I can't understand (I'm new in programing..).
public void loadLabels()
{
using (OleDbConnection connection = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + dbString))
{
connection.Open();
String strDa = "SELECT Lessons.number, Lessons.type, Lessons.datel, Lessons.hour , Lessons.money, Lessons.note FROM Lessons";
using (OleDbDataAdapter da = new OleDbDataAdapter(strDa, connection))
{
DataTable t = new DataTable();
da.Fill(t);
listBox1.DataSource = t;
}
}
}