Label[] lbl1 = new Label[25];
should really be
Label[] lbl1 = new Label[DataTable1.Rows.Count];
AND you need to do
lbl1[I] = new Label(..)
before you call
lbl1[I].Text = ...`
13
solved C# data from database to label
Label[] lbl1 = new Label[25];
should really be
Label[] lbl1 = new Label[DataTable1.Rows.Count];
AND you need to do
lbl1[I] = new Label(..)
before you call
lbl1[I].Text = ...`
13
solved C# data from database to label