Telerik Forums
UI for WinForms Forum
1 answer
13 views

i want to disable some default Column Header Context Menu like "Sort Ascdnging" "Sort Descending" ... 

How to do  ?

Also i want to disable some default Cell Column Context Menu ?  TKS 

Nadya | Tech Support Engineer
Telerik team
 answered on 20 Jan 2026
1 answer
22 views

i use RADGRIDVIEW  to show datas

i want to let use to select  some rows as  "Deleted"

to delete these datas form DataBase

how can i  let these rows  shown as the following

the example is done by using C# default DataGridView

How can be done in RADGRIDIEW ?

Dinko | Tech Support Engineer
Telerik team
 answered on 20 Jan 2026
1 answer
29 views

Hello,

I would like to ask two questions about custom columns in GridView. I'm putting them into one thread since they're related.

1. What's the relationship between SetContentCore and OnCellFormatting? Is it ok to set formatting in SetContentCore? This is how it seems to me to be correct:

		protected override void SetContentCore(object value)
		{
			if (value is Quality q)
			{
				if (q == Quality.None)
					Text = "--";
				else
					Text = q.ToString();
			}
			else
				base.SetContentCore(value);
		}

		protected override void OnCellFormatting(CellFormattingEventArgs e)
		{
			ResetValue(VisualElement.BackColorProperty, ValueResetFlags.Local);
			ResetValue(VisualElement.ForeColorProperty, ValueResetFlags.Local);
			ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local);
			ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);

			if (Value is Quality q)
			{
				switch (q)
				{
					case Quality.OK:
						BackColor = Color.Lime;
						NumberOfColors = 1;
						DrawFill = true;
						break;
					case Quality.NOK:
						BackColor = Color.Red;
						NumberOfColors = 1;
						DrawFill = true;
						break;
					case Quality.Error:
						BackColor = Color.DodgerBlue;
						NumberOfColors = 1;
						DrawFill = true;
						break;
				}
			}

			base.OnCellFormatting(e);
		}

But this also works. I tried it mainly because of the second question, and Copilot actually suggested it as the first styling approach.

		protected override void SetContentCore(object value)
		{
			if (value is Quality q)
			{
				if (q == Quality.None)
					Text = "--";
				else
					Text = q.ToString();

				ResetValue(VisualElement.BackColorProperty, ValueResetFlags.Local);
				ResetValue(VisualElement.ForeColorProperty, ValueResetFlags.Local);
				ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local);
				ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);

				switch (q)
				{
					case Quality.OK:
						BackColor = Color.Lime;
						NumberOfColors = 1;
						DrawFill = true;
						break;
					case Quality.NOK:
						BackColor = Color.Red;
						NumberOfColors = 1;
						DrawFill = true;
						break;
					case Quality.Error:
						BackColor = Color.DodgerBlue;
						NumberOfColors = 1;
						DrawFill = true;
						break;
				}
			}
			else
				base.SetContentCore(value);
		}

 

2. Is there any way to override how Value is retrieved from the DataBoundItem? In one of my column types, I can't use FieldName directly. In classic DataGridView, I could override GetValue / SetValue like this:

		protected override object GetValue(int rowIndex)
		{
			DgvRealResultColumn col = OwningColumn as DgvRealResultColumn;
			object obj = DataGridView.Rows[rowIndex].DataBoundItem;
			if ((col == null) || (obj == null))
				return base.GetValue(rowIndex);

			object resultValue = GetResultValue(rowIndex, col, obj);
			Quality q = (Quality)Convert.ToInt32(resultValue);
			if (!QualityHelper.HasValue(q))
				return null;

			if (obj is RealResult rr)
				return rr.Value;

			string propName = string.Format("R{0:D3}Value", col.ItemIndex);
			PropertyInfo pi = obj.GetType().GetProperty(propName);
			return pi.GetValue(obj, null);
		}

I don't see anything like that in Telerik GridView. So far, I came up with this workaround:

		protected override void SetContentCore(object value)
		{
			TestResult r = null;
			var obj = RowInfo.DataBoundItem;
			if (obj is TestResult)
				r = (TestResult)obj;
			else if (obj is TestItem item)
			{
				var col = ColumnInfo as RgvTestResultColumn;
				if ((col != null) && (item.Results != null) && (col.ResultIndex < item.Results.Length))
					r = item.Results[col.ResultIndex];
			}

			ResetValue(VisualElement.BackColorProperty, ValueResetFlags.Local);
			ResetValue(VisualElement.ForeColorProperty, ValueResetFlags.Local);
			ResetValue(LightVisualElement.NumberOfColorsProperty, ValueResetFlags.Local);
			ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local);

			if (r == null)
			{
				base.SetContentCore(value);
				return;
			}

			switch (r.Result)
			{
				case Quality.OK:
					Text = r.Value.ToString("F1");
					BackColor = Color.Lime;
					NumberOfColors = 1;
					DrawFill = true;
					break;
				case Quality.NOK:
					Text = r.Value.ToString("F1");
					BackColor = Color.Red;
					NumberOfColors = 1;
					DrawFill = true;
					break;
				case Quality.Error:
					Text = "X";
					BackColor = Color.DodgerBlue;
					NumberOfColors = 1;
					DrawFill = true;
					break;
				default:
					Text = "--";
					break;
			}
		}

But in this case, it doesn't set the internal Value, so when I write rgv.Rows[0].Cells["colR0"].Value in code, I always get null. Is there any way to solve this? I am attaching my test code for testing.

Dinko | Tech Support Engineer
Telerik team
 answered on 01 Jan 2026
1 answer
169 views

i want to custimize RadMessageBox  

example  :  set the TitleBar.Font  BackColor

set  radLabel1  font and backcolor 

set button 's font and button's  szie ....

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Dec 2025
2 answers
76 views

RadMenuItem's TEXT shown too small ? how can i fix it ? 

 

Top achievements
Rank 1
Iron
Iron
Iron
 answered on 26 Dec 2025
1 answer
90 views
Hello, I want to create a rounded form.

I want to convert existing forms created using RadForm into rounded forms.

I want to create a BaseRoundedForm that inherits from RadForm.

Is there a way to do this?

I'm using C#.

Since ShapedForm inherits from Form, it may be difficult to apply it to existing RadForm forms.

Nadya | Tech Support Engineer
Telerik team
 answered on 23 Dec 2025
2 answers
41 views

Hello,

I’m working with some older forms that use System.Windows.Forms.DataGridView. The form is quite complex, so converting it to Telerik isn’t straightforward.

I’d like to copy a row from RadPageView. Could you please provide a sample code snippet showing how to achieve this?

Thank you!

Radek

Radek
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 17 Dec 2025
1 answer
45 views

Hi All,

I searched on internet for the solution but didn't find any solution. I am using RadTreeView control, when I move mouse over treeview, nodes get highlighted. I used following ways but no luck.

private void radTreeList_NodeMouseMove(object sender, RadTreeViewMouseEventArgs e)
{
    e.Node.BackColor = Color.Transparent; // Remove hover background
}

 

    private void radTreeList_NodeFormatting(object sender, TreeNodeFormattingEventArgs e)
    {
        e.NodeElement.BackColor = Color.Transparent; // Remove hover background
        e.NodeElement.DrawFill = false; // Disable fill

        if (e.Node.Selected)
        {
            e.Node.BackColor = Color.Blue; // Default background
            e.Node.ForeColor = Color.White;      // Default text color
        }
        else
        {
            e.NodeElement.ContentElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
            e.NodeElement.ContentElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local);
        }           
    }

 

Kindly provide me solution, stuck on this for a long time.

 

Thanks

 

Nadya | Tech Support Engineer
Telerik team
 answered on 17 Dec 2025
1 answer
34 views

Hi All,

I have implemented the Telerik window tree view control in my project, in output when I move mouse over nodes, get highlighted. I need to remove that one.

I tried the following ways but no luck.

 

 private void radTreeList_NodeMouseMove(object sender, RadTreeViewMouseEventArgs e)
 {
     e.Node.BackColor = Color.Transparent; // Remove hover background
 }

 

  private void radTreeList_NodeFormatting(object sender, TreeNodeFormattingEventArgs e)
  {
      e.NodeElement.BackColor = Color.Transparent; // Remove hover background
      e.NodeElement.DrawFill = false; // Disable fill

      if (e.Node.Selected)
      {
          e.Node.BackColor = Color.Blue; // Default background
          e.Node.ForeColor = Color.White;      // Default text color
      }
      else
      {
          e.NodeElement.ContentElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local);
          e.NodeElement.ContentElement.ResetValue(LightVisualElement.ForeColorProperty, ValueResetFlags.Local);
      }           
  }

 

Please provide me a solution to get rid off this problem.

 

Thanks,

Ravinder Singh

Nadya | Tech Support Engineer
Telerik team
 answered on 17 Dec 2025
2 answers
203 views

i add some "CommandBarButton"s into RadCommandBar

i need image like "Add/Edit/Cancel/Delete"

Do Telerik provide images for use  ?

Do i need png or  SVG  File ?

CHATGPT tell me there is "Telerik.WinControls.UI.RadImageList"

but i can not find it

 

Top achievements
Rank 1
Iron
Iron
Iron
 answered on 16 Dec 2025
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Jesse
Top achievements
Rank 2
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?