WinForms RadControls Q3 2007
Visual Studio 2005
.NET 2.0
I want two columns pinned and I set IsPinned property to true.
When I scrolling grid content of other columns slide under pinned colums.
I tried to create a new Theme and set backcolor of GridRowElement (root/element) with Telerik Visual Style Builder but I nothing changed.
I created a conditional formatting to force backcolor to white, but in this way I lose borders of row selection.
Any better idea?
Thanks in advance,
Emanuele Savarese
This is code to reproduce error. Uncomment rows to view my solution with conditional formatting.
Visual Studio 2005
.NET 2.0
I want two columns pinned and I set IsPinned property to true.
When I scrolling grid content of other columns slide under pinned colums.
I tried to create a new Theme and set backcolor of GridRowElement (root/element) with Telerik Visual Style Builder but I nothing changed.
I created a conditional formatting to force backcolor to white, but in this way I lose borders of row selection.
Any better idea?
Thanks in advance,
Emanuele Savarese
This is code to reproduce error. Uncomment rows to view my solution with conditional formatting.
private void Form1_Load(object sender, EventArgs e) | |
{ | |
DataTable dt = new DataTable(); | |
dt.Columns.Add("From", typeof(bool)); | |
dt.Columns.Add("To", typeof(bool)); | |
dt.Columns.Add("Description", typeof(string)); | |
dt.Rows.Add(false, false, "hi1"); | |
dt.Rows.Add(false, false, "hi2"); | |
dt.Rows.Add(false, false, "hi3"); | |
dt.Rows.Add(false, false, "hi4"); | |
dt.Rows.Add(false, false, "hi5"); | |
dt.Rows.Add(false, false, "hi5"); | |
dt.Rows.Add(false, false, "hi6"); | |
radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false; | |
radGridView1.Columns.Add(new GridViewBooleanColumn("From")); | |
radGridView1.Columns[0].IsPinned = true; | |
radGridView1.Columns.Add(new GridViewBooleanColumn("To")); | |
radGridView1.Columns[1].IsPinned = true; | |
radGridView1.Columns.Add(new GridViewTextBoxColumn("Description")); | |
radGridView1.Columns[2].ReadOnly = true; | |
radGridView1.Columns[2].Width = 1000; | |
//ConditionalFormattingObject item = new ConditionalFormattingObject("ruleName", | |
// ConditionTypes.LessOrEqual, "aa", string.Empty, true); | |
//item.CellBackColor = Color.White; | |
//item.RowBackColor = Color.White; | |
//radGridView1.Columns[0].ConditionalFormattingObjectList.Add(item); | |
//item = new ConditionalFormattingObject("ruleName", | |
// ConditionTypes.LessOrEqual, "aa", string.Empty, true); | |
//item.CellBackColor = Color.White; | |
//item.RowBackColor = Color.White; | |
//radGridView1.Columns[1].ConditionalFormattingObjectList.Add(item); | |
radGridView1.SelectionMode = GridViewSelectionMode.FullRowSelect; | |
radGridView1.DataSource = dt; | |
} |