There must be some other code that you're not showing.
You have:
items.Columns.Add(col1);
but then, you use:
dr =
ba.items.NewRow();
Two different variables?
~~Bonnie
>Ah, got it! Thanks!
>
>Now its telling me that there is no column called "line"?
>
>DataColumn col1 = new DataColumn("line");
>items.Columns.Add(col1);
>
>
>DataRow dr;
>dr = ba.items.NewRow();
>
>dr.BeginEdit();
>dr["line"] = ba.items.Rows.Count + 1;
>dr.EndEdit();
>
>ba.items.Rows.Add(dr);
>gridControl1.DataSource = ba.items;