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

Gridview

9 Answers 176 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Najoua
Top achievements
Rank 1
Najoua asked on 14 Jun 2007, 12:53 PM
Hi,
I wanna know if the gridview columns could be docked,in another word I don't want to define the columns size but to dock them.

9 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 14 Jun 2007, 03:07 PM
Hello Bahri,

By "docked", do you mean the columns to be pinned, e.g. to the left side of RadGridView? If yes, we do support this feature. 

To pin a column (or a row) simply set  its  property IsPinned to true

radGridView1.MasterGridViewTemplate.Columns[2].IsPinned = true;

 
All the best,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Najoua
Top achievements
Rank 1
answered on 14 Jun 2007, 04:00 PM
what I mean is that columns fit the area defined by the user.
So, columns will not autosized but occup the user area( like Dock propriety for the gridview).
I hope I was clear!
0
Jack
Telerik team
answered on 15 Jun 2007, 10:28 AM
Hi Bahri,

Currently we support two column sizing  modes: None and Fill. They are equivalent to MS DataGridView's AutoSizeColumnMode: None means that column widths do not automatically adjust. Fill means that the widths of all columns will fill the display area exactly. For Q2 2007 we will add all column sizing modes that exist in MS DataGridView.

As to the feature you request, can you tell us where you have seen it? Can you give us more details about it?
 

Regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Najoua
Top achievements
Rank 1
answered on 15 Jun 2007, 12:56 PM
Hi Jack,
Could you please tell me how can I define the fill propriety that you told about?
I didn't manage to finf it for rad gridview!
Thanks!
0
Jack
Telerik team
answered on 15 Jun 2007, 02:39 PM
Hi Mlle,

If you use our latest version (Q1 2007 SP1) you can set the fill mode with this code:

this.radGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;

 
Regards,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Najoua
Top achievements
Rank 1
answered on 18 Jun 2007, 07:22 AM
Morning Jack,
I've tried to use this propriety but it shows errors like : 'Telerik.WinControls.UI.GridViewTemplate' does not contain a definition for 'AutoSizeColumnsMode
And
 The name 'GridViewAutoSizeColumnsMode' does not exist in the current context.
So I don't understand what's the" problem?
0
Jack
Telerik team
answered on 18 Jun 2007, 08:18 AM
Hello Bar,

I see you downloaded RadControls for WinForms Q1 2007. This property was added in Q1 SP1. Please, upgrade to the new version to take advantage of the new property.

Greetings,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Najoua
Top achievements
Rank 1
answered on 18 Jun 2007, 10:29 AM
Thank you very much.
I use now the SP1 version.the problem is that I can't now see the differents nodes of the radtreeview inside the panelBar.can you help to find a solution because it works normally in the first version.
0
Boyko Markov
Telerik team
answered on 18 Jun 2007, 04:17 PM
Hi Bahri,

We looked at the sample project you've sent us and noticed that the nodes of the TreeView are not visible with the exception of the first node. I investigated the problem and realized that the ForeColor of every TreeNode is set to white for some reason. The solution I can suggest is to traverse all nodes in your treeView and set their ForeColor to Black, for example.

If you need further assistance please write us back.


All the best,
Ray
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Najoua
Top achievements
Rank 1
Answers by
Jack
Telerik team
Najoua
Top achievements
Rank 1
Boyko Markov
Telerik team
Share this question
or