or
namespace RadControlsWinFormsApp2{ partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components; /// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows Form Designer generated code /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { Telerik.WinControls.UI.GridViewDecimalColumn gridViewDecimalColumn2 = new Telerik.WinControls.UI.GridViewDecimalColumn(); this.radGridView1 = new Telerik.WinControls.UI.RadGridView(); this.radSpinEditor1 = new Telerik.WinControls.UI.RadSpinEditor(); ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.radSpinEditor1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); this.SuspendLayout(); // // radGridView1 // this.radGridView1.Location = new System.Drawing.Point(0, 0); // // radGridView1 // gridViewDecimalColumn2.FieldName = "VALUE"; gridViewDecimalColumn2.HeaderText = "column1"; gridViewDecimalColumn2.Name = "column1"; this.radGridView1.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] { gridViewDecimalColumn2}); this.radGridView1.Name = "radGridView1"; this.radGridView1.Size = new System.Drawing.Size(240, 150); this.radGridView1.TabIndex = 0; this.radGridView1.Text = "radGridView1"; // // radSpinEditor1 // this.radSpinEditor1.Location = new System.Drawing.Point(93, 180); this.radSpinEditor1.Name = "radSpinEditor1"; // // // this.radSpinEditor1.RootElement.AutoSizeMode = Telerik.WinControls.RadAutoSizeMode.WrapAroundChildren; this.radSpinEditor1.ShowBorder = true; this.radSpinEditor1.Size = new System.Drawing.Size(100, 20); this.radSpinEditor1.TabIndex = 1; this.radSpinEditor1.TabStop = false; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(292, 266); this.Controls.Add(this.radSpinEditor1); this.Controls.Add(this.radGridView1); this.Name = "Form1"; // // // this.RootElement.ApplyShapeToControl = true; this.Text = "Form1"; ((System.ComponentModel.ISupportInitialize)(this.radGridView1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.radSpinEditor1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion private Telerik.WinControls.UI.RadGridView radGridView1; private Telerik.WinControls.UI.RadSpinEditor radSpinEditor1; }}using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data;namespace RadControlsWinFormsApp2{ public partial class Form1 : Telerik.WinControls.UI.RadForm { public Form1() { InitializeComponent(); (radGridView1.Columns[0] as Telerik.WinControls.UI.GridViewDecimalColumn).DecimalPlaces = 2; } }}
Hi,
I've created some style with Visual Style Builder and I'm using it with rad grid view.
I would like to hide a column border - but just between 2 column headers.
Particular grid view could have different data sources so I need to set this (hide column splitter) dynamically.
I've attached the screen shot with marked on the splitter I'd like to hide.
I browsed through column properties but still couldn't find any matching field to set, please help me with this one...
Regards.


private void TicketView_CellEndEdit(object sender, GridViewCellEventArgs e){ if ((sender as GridViewEditManager).GridViewElement.CurrentCell is GridFilterCellElement) { RequeryGridData(); }}private void TicketView_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e){ if (e.ContextMenuProvider is GridFilterCellElement) { e.ContextMenu.DropDownClosed += new RadPopupClosedEventHandler(FilterContextMenu_Closed); }}void FilterContextMenu_Closed(object sender, EventArgs e){ RequeryGridData();}private void TicketView_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e){ if (e.ContextMenuProvider is GridFilterCellElement) { e.ContextMenu.DropDownClosed += new RadPopupClosedEventHandler(FilterContextMenu_Closed); }}void FilterContextMenu_Closed(object sender, EventArgs e){ //HACK: Have to refresh grid contents, but MUST NOT do it from a filter changing event as // updating the datasource while the filter change is finalized crashes the program System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer(); timer.Interval = 1; timer.Tick += new EventHandler(FilterChangedTimer_Tick); timer.Start();}void FilterChangedTimer_Tick(object sender, EventArgs e){ (sender as System.Windows.Forms.Timer).Dispose(); RequeryGridData();
}