Telerik Forums
UI for WinForms Forum
0 answers
5 views

Hello.

I am developing a form that has a radgrid with hierarchy and in some instances, the parent row makes changes to the child rows and vice versa.
In my case, I have the functionalities below (Among others):

  1. Both the parent and child rows have a "Check" column.
  2. The relation between the 2 is done through an "Id" column which in my DataSource, is a Guid (The column in both templates is a textbox).
  3. Every time a row is checked (Parent or child), the background changes color.
  4. Every time I check a parent row, the corresponding child rows are also checked (Which then change color).
    Same happens if I uncheck the parent row which then unchecks the corresponding child rows and resets the background color.
    This behavior is managed in the CellValueChanged event of the RadGridView.
    Checking and unchecking the child rows according to the parent, is being done directly in the DataSource which in my case is a DataTable. But the same behavior happens if I edit the grid rows directly.
  5. In the parent template, the Check column has the property EnableHeaderCheckBox set to true.
  6. The color rule is managed by a ExpressionFormattingObject added to the ConditionalFormattingObjectList property of the Check column. I also tried to set up the color rules in the Formating events but the problem I will explain below persists. Still, the color is not the only problem.

My problem here is that everything works correctly if I check and uncheck the parent rows individually. Whether they expanded or not. Depending on the check action in the parent row, the child rows update visually both in their "Check" state and in the color rule.



However, if I check/uncheck all the parent columns from the header check box, the child rows do not update visually unless I close the parent row and expand it again or if I click on all rows/scroll down or up to force them to update.
Like in this print for example. The first parent row was expanded when I checked the header check box. It was suppose to check the child rows and update the color. They are checked internally in the datasource.



There are also some issues with the header check in the child rows. In this case, I do not have the EnableHeaderCheckBox = true in the GridViewTemplate but the problem is similar. Checking all the child rows of a certain parent row through the header check, updates the value on the "Chk" column but does not update it visually with the color.

There is also a problem where in some instances if I check all the parent rows through the header check box, their color does not update.
This happens regardless of the parent rows being expanded or not.



I have to click on each one or scroll or expand them to force the visual update.
The problem seems to be related to the actual visual update. I tried multiple things to for the update but none helped. Also tried forcing the rows to expand if they were collapsed not none helped.

This is all I tried.


On all the examples, I checked the data in the datasource and everything is updated correctly. It is just the visuals that are not updating automatically.

To help understand the problem, I attached a little example with a solution similar to what I have, where this issue can be replicated.
I am using Telerik Winforms V2024.4.1113.462.

Thank you in advance for any answer.
João Carvalho

João
Top achievements
Rank 1
 asked on 28 Jul 2025
3 answers
13 views

Hello,

I have a issue with print datagridview by a larger number of columns.

In first case (WratText = false) I cannot see all text (see image)

In the second case (WrapText = true) is row height too small and again I cannot see whole text.

Both case it has set AutoSizeRows = true;

In both cases I don't see the entire date

 Can you help me?

Thank you

Radek
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 Jul 2025
3 answers
14 views

Hello,

I want to choose column by checkboxes, something like that:

I

It is possible?

Thank you for your answer

Radek
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 18 Jul 2025
1 answer
13 views

On the gridview when a user enters a filter value, I would like for the background color of that filter to change to a different color (only for the column or columns where a filter has been entered) so that users can quickly see where they entered a filter value.

Currently, if the grid has many columns the user will enter a value (sometimes forget that they did that) and wonder why they have a filtered grid.  I know that sounds crazy but end users do that!  So, I'd like the Filter Cell Backcolor to be a different color so that it's Obvious that - that particular column has a filter applied to it.

Below, I show the code I'm using in the GridData_ViewCellFormatting event.  But the problem is - is that it changes the color for the entire filtering row (across all columns)... whereas I want the back color of the "Filter Cell" to change only for that particular column or columns where a filter has been applied.

It would be greatly appreciated is someone has the answer to solving this 'problem'.

Dim filterDescriptors = GridData.FilterDescriptors
If TypeOf e.CellElement Is Telerik.WinControls.UI.GridFilterCellElement Then
    DirectCast(e.CellElement.RowInfo, Telerik.WinControls.UI.GridViewFilteringRowInfo).Height = 28
    e.CellElement.DrawFill = True
    e.CellElement.NumberOfColors = 1
    e.CellElement.BackColor = Color.Beige
    e.CellElement.Font = New Font("Verdana", 10)
    For Each filterDescriptor In filterDescriptors
        Dim propertyName = filterDescriptor.PropertyName
        Dim filterOperator = filterDescriptor.Operator
        Dim expression = filterDescriptor.Expression
        Dim filterValue = filterDescriptor.Value
        If filterValue IsNot Nothing Then
            'If e.CellElement.Text = propertyName Then
            e.CellElement.BackColor = Color.LightGreen
            Exit Sub
            'End If
            'e.CellElement.BackColor = Color.Pink
        End If
Nadya | Tech Support Engineer
Telerik team
 answered on 15 Jul 2025
1 answer
8 views

Hello,

I created Barcode Column in RadGridView according this article: https://docs.telerik.com/devtools/winforms/knowledge-base/barcode-column-in-gridview

And now I do not know how I can print gridview with Barcode Column.

Can you help me? Thank you

 

Nadya | Tech Support Engineer
Telerik team
 answered on 15 Jul 2025
1 answer
16 views

Hi. I wrote a program that draws a number of connection (without any shape) in a raddiagram. Now when I click on the connection, some connections get the gear symbol and some don't. Those connections that don't have the symbol appear when I move the start point or end point of the connection. Can you explain why and how I should fix it? Here is a snippet of my code.

Dim theline AsNew RadDiagramConnection With { .StrokeThickness = 3, .StartPoint = New Point(10, 10), .EndPoint = New Point(10, 50), .Name = 1, .IsEditable = False, .IsDraggingEnabled = True, .BackColor = System.Drawing.Color.LawnGreen }

RadDiagram1.Items.Add(theline)

Dinko | Tech Support Engineer
Telerik team
 answered on 02 Jul 2025
2 answers
196 views

I have upgraded my WinForms project to the latest version, as shown in the attached file.

When running the application inside the VS 2022, a dialog box shows with no license.

I tried the suggested resolution from:

https://docs.telerik.com/devtools/winforms/licensing/license-key#downloading-the-license-key

I also downloaded the latest license from my account.

Nothing resolved the problem.

Can you help, please?

Note: My subscription will expire by 20 Sep 2025

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Jun 2025
1 answer
20 views

Hi

I have a RadGridView populated from a DataSet that has one MasterTemplate and two child templates which is working fine.

The rows from the two child templates are displayed in a RadPageView element in tabs - which has different modes to display I have learnt.

But I want to have all the rows from both child templates displayed one under the other - without having to click through the categories and without headers.

Is that possible?

Nadya | Tech Support Engineer
Telerik team
 answered on 16 Jun 2025
4 answers
37 views

Hello Telerik Support Team,

i found a solution for using enum values in a grid in the knowledge base:
https://docs.telerik.com/devtools/winforms/knowledge-base/gridview-comboboxcolumn-enum

I tried to adapt it for my purpose:

My enum and column definitions are:

[Flags]
public enum SpartenFlags
{
    [Display(Name = "Keine")]
    None = 0,
    Strom = 1,
    Gas = 2,
    Wasser = 4,
    Abwasser = 8,
    Breitband = 16,
    [Display(Name = "Fernwärme")]
    Fernwaerme = 32
}

gridViewComboBoxColumn2.EnableExpressionEditor = false;
gridViewComboBoxColumn2.FieldName = "Sparten";
gridViewComboBoxColumn2.HeaderText = "Sparten";
gridViewComboBoxColumn2.MinWidth = 25;
gridViewComboBoxColumn2.Name = "Sparten";
gridViewComboBoxColumn2.Width = 45;
gridViewComboBoxColumn2.DataSource = EnumWrapper<TBM_HAProzessPlugin.SpartenFlags>.EnumToList<TBM_HAProzessPlugin.SpartenFlags>();
gridViewComboBoxColumn2.DisplayMember = "Name";
gridViewComboBoxColumn2.ValueMember = "ID";

 

I override the view with a CustomGridImageCellElement (derived from GridDataCellElement) to display an icon depending on the combination of flag values. This works fine so far. But the filtering only works with single values. I would like to have a checkbox for each flag value and the filtering working correclty for every combination, that includes the checked values. Is there a way to archieve this?

 

Thank you for your help.

Best Regards,

Stephan

 

Stephan
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 11 Jun 2025
0 answers
24 views

I am sure this is a setting somewhere, but I can't find it for my life.  In some cases, we have where Grid columns exceed the width of the visible grid.  When that happens, the grid data is centered in the visible area.  How can we prevent that?  

 

Any help would be great appreciated.

 

TIA

 

 

 

 

Mark
Top achievements
Rank 2
Bronze
Bronze
Veteran
 asked on 29 Apr 2025
Narrow your results
Selected tags
Tags
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)
Chart (obsolete as of Q1 2013)
Form
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
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?