This is a migrated thread and some comments may be shown as answers.

[Solved] Bug in RadDataGrid?

2 Answers 70 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
hart
Top achievements
Rank 1
Veteran
hart asked on 01 Dec 2009, 05:42 PM
When adding simple data to a grid, the first two columns are missing.
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(); 
Is there a typo in my code?

Thanks,
HH.

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Dec 2009, 06:46 AM
Hello,

This code is definitely not related to RadGridView for Silverlight! Please post your question in the relevant forum.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
hart
Top achievements
Rank 1
Veteran
answered on 02 Dec 2009, 01:23 PM
Oops,
You are correct, it is RadGridView for ASPX
Tags
GridView
Asked by
hart
Top achievements
Rank 1
Veteran
Answers by
Vlad
Telerik team
hart
Top achievements
Rank 1
Veteran
Share this question
or