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

[Solved] Gridview Columns Add Problem

2 Answers 120 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.
Piyush Patel
Top achievements
Rank 1
Piyush Patel asked on 26 Nov 2009, 11:52 AM

 Hello Friends ! i m working om silverlight 3.0 beta versions. I m using RadGrdiview. I m Adding columns collections  in GridViewColumnCollection .My problem is when I add columns Collections in Gridview one Blank Extra columns also add at last you can see my code.i m adding one single column below but in Gridview display TWO columns.one is "Name" column and second blank column without heading. Why Second Blank column display in Gridview????how to remove blank extra column.???
psl see attached Screenshots

var
columns = new GridViewColumnCollection();

var sizeColumn = new GridViewDataColumn 

{

Header = "Size",  

Width = new GridViewLength(250)

};

columns.Add(sizeColumn); 

gridEmail.Columns.Clear();

gridEmail.Columns.AddRange(columns);

 

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 26 Nov 2009, 12:11 PM
Hello,

There is no extra column - these are just rows stretched to the available width exactly in the same way as in standard Silverlight DataGrid.

Greetings,
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
Piyush Patel
Top achievements
Rank 1
answered on 26 Nov 2009, 12:19 PM
Thank you sir!
I get my answer.
Tags
GridView
Asked by
Piyush Patel
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Piyush Patel
Top achievements
Rank 1
Share this question
or