I already have an SQlite database setup. Right now I'm parsing through it. For example, if certain values in the column Seq are >30 I transfer those values to a list. I want to use that list, to populate a datagrid view so the user can see what values were > 30
How do I populate a data grid view with multiple lists? Basically column 1 should be list1, column 2, list 2, etc.
EDIT: DOES anyone think I should use a list view instead? If so, how?
Here's my code for parsing to obtain values for my lists. Now I need to somehow populate a DGV with these lists.
string sql4 = "select * from abc";
SQLiteCommand command = new SQLiteCommand(sql4, sqlite_conn);
// The datareader allows us to read the table abc row by row
SQLiteDataReader reader = command.ExecuteReader();
// What happens next: We are trying to parse each column for irregularities to show to the user. For example if a value in column
// Seq is >30, we need to let the user know. We do this by adding all values >30 to the SeqIrregularities list.
while (reader.Read())
{
int seq;
if (int.TryParse(reader["Seq"].ToString(), out seq))
if (seq > 30)
{
SeqIrregularities.Add(seq);
seq1 = true;
}
int maxlen;
if (int.TryParse(reader["MaxLen"].ToString(), out maxlen))
if (maxlen> 30.00)
{
MaxLen.Add(maxlen);
maxlen1 = true;
}
}