This question is locked. New answers and comments are not allowed.
When adding simple data to a grid, the first two columns are missing.
See attached Bitmap
Is there a typo in my code?
Thanks,
HH.
See attached Bitmap
| DataTable dt = new DataTable(); |
| for (int i = 0; i < 5; i++) |
| dt.Columns.Add(new DataColumn("Col: " + i.ToString(), typeof(string))); |
| for (int i = 0; i < 5; i++) |
| { |
| DataRow dr = dt.NewRow(); |
| dt.Rows.Add(dr); |
| } |
| RadGrid1.DataSource = dt; |
| RadGrid1.Rebind(); |
| for (int i = 0; i < 5; i++) |
| for (int j = 0; j < dt.Columns.Count; j++) |
| RadGrid1.Items[i].Cells[j].Text = j.ToString(); |
Thanks,
HH.
