Telerik Forums
UI for WinForms Forum
1 answer
27 views

Product Information

  • Product: Telerik UI for WinForms
  • Control: RadGridView
  • Version: 2025 Q4

Desired Behavior

When multiple rows are selected, I would like to deselect only the clicked row if the user clicks a row that is already selected.

Current Implementation

I implemented the following logic in the event:CurrentRowChanging

void Grid_CurrentRowChanging(object sender, CurrentRowChangingEventArgs e)
{
 if (e.CurrentRow != null && e.NewRow != null)
 {
  if (e.CurrentRow.IsSelected && e.NewRow.IsSelected)
  {
   e.Cancel = true;
   e.NewRow.IsSelected = false;
  }
 }

}

Behavior Observed

Case 1

Initial state:

  • Row A, Row B, and Row C are selected.
  • CurrentRow = Row A.

Action:

  • Click Row B.

Result:

  • Row B is deselected.
  • CurrentRow remains Row A.
  • The visual state is updated correctly and Row B is no longer highlighted.

This works as expected.

Case 2

Initial state:

  • Row A, Row B, and Row C are selected.
  • CurrentRow = Row A.

Action:

  • Click Row A (the CurrentRow itself).

Result:

  • Row A is removed from the selection.
  • The row is no longer contained in .SelectedRows
  • However, the entire row remains highlighted in blue.

Investigation Results

I confirmed that is not fired when the user clicks the CurrentRow itself, since the current row is not changing.CurrentRowChanging

After clicking the CurrentRow, I checked the following properties:

row.IsSelected == false
rowElement.IsSelected == false
row.IsCurrent == true
rowElement.IsCurrent == true
rowElement.ContainsFocus == true

radGridView1.SelectedRows.Contains(row) == false

Therefore, the row appears to be completely deselected internally.

Additional Tests

I tried forcing UI updates using the following methods, but the visual appearance did not change:

radGridView1.TableElement.Update(GridUINotifyAction.StateChanged);

radGridView1.TableElement.Invalidate();

radGridView1.Refresh();

 

Question

Although the row is no longer selected:

row.IsSelected == false

radGridView1.SelectedRows.Contains(row) == false

the entire row remains highlighted in blue.

Is this expected behavior caused by the CurrentRow/Focus visual state, or could this be a rendering issue?

Additionally, is there a recommended way to achieve the following behavior?

  • Keep the CurrentRow unchanged.
  • Preserve the remaining selected rows.
  • When the CurrentRow is clicked again, remove its visual selection highlight so that it appears deselected.

Any guidance or recommended approach would be greatly appreciated.

Thank you.

---------------------------------------------------

The issue looks like it can be resolved with the following code:

 private void GridView_RowFormatting(object sender, RowFormattingEventArgs e)
 {
     if (e.RowElement.RowInfo.IsSelected)
     {
         e.RowElement.DrawFill = true;   
         e.RowElement.GradientStyle = Telerik.WinControls.GradientStyles.Solid;  
         e.RowElement.DrawBorder = true;
         e.RowElement.BorderBoxStyle = Telerik.WinControls.BorderBoxStyle.SingleBorder; 
     }
     else
     {
         e.RowElement.DrawFill = false;
         e.RowElement.DrawBorder = false;
     }
 }

 private void GridView_CellFormatting(object sender, CellFormattingEventArgs e)
 {
     if (e.CellElement.RowInfo.IsSelected)
     {
         e.CellElement.DrawFill = true;
     }
     else
     {
         e.CellElement.DrawFill = false;

     }
 }

However, the ">" indicator for the CurrentRow and the border that remains around the selected cell are still displayed.

Is there a way to remove these as well?

Please refer to the attached image.

Nadya | Tech Support Engineer
Telerik team
 answered on 31 Jul 2026
1 answer
18 views

There is nothing in the textbox, but I do have AutocompleteMode to Suggest.  It also did this with None.

The control is bound to a DataTable.

any suggestions on helping solve this would be appreciated.

 

* Also it looks  like the "Blank" is at the bottom instead of the top.

Blank is not an option I added to the control.

 

Thanks,

 

Rog

Nadya | Tech Support Engineer
Telerik team
 answered on 30 Jul 2026
1 answer
20 views

I have a control on a form that is working fine most of the time. But I'm finding that if I want to print a PDF file from elsewhere in the form (with the PDF Viewer on another tab that is not visible) then the LoadDocument is not working. Is this by design please?

Kind regards,

Simon

Nadya | Tech Support Engineer
Telerik team
 answered on 27 Jul 2026
1 answer
14 views
I have set the FitToWidth and FitFullPage all to no avail
Nadya | Tech Support Engineer
Telerik team
 answered on 24 Jul 2026
1 answer
21 views
I have set the Doc in Parent Container, FitFullPage, and FitToWidth properties, all to no avail
Nadya | Tech Support Engineer
Telerik team
 answered on 24 Jul 2026
1 answer
19 views

Hi,

I don't think there is currently a way to drag components directly on the designer for RibbonBar sub-elements. 

For example, when adding a new button in a RadRibbonBarGroup, there is no way to change its order : I would like to put it between existing buttons.

The same is also impossible when adding a RadRibbonBarButtonGroup inside a RadRibbonBarGroup, there is no way to move buttons from the RadRibbonBarGroup to the newly created RadRibbonBarGroup .

Also, the RadLabel element doesn't exist in the list of possible elements to add.

For all these problems, there is no other way than modifying the Designer.cs code. And it's a real pain...

Thank you.

Nadya | Tech Support Engineer
Telerik team
 answered on 22 Jul 2026
1 answer
30 views

I looked around the forum and I cannot find anything relating to the Filter Row Height

When I type in the filter row field the text is unreadable

When I click off of the field you'll notice from the images that I typed a T... but it hardly visible in the initial image

How do I adjust the height of the Filter row so that when the user types - they can see what they are typing???

Nadya | Tech Support Engineer
Telerik team
 answered on 21 Jul 2026
1 answer
19 views

I have a grid where I have some very narrow columns where I might use an icon in the header or simply leave the header text blank. However, it would be nice to be able to have something go into the Column Chooser text rather than simply use the HeaderText in there so the user knows what the column is when they are looking at the list. Is this possible at all please?

Thank you in advance.

Simon

Nadya | Tech Support Engineer
Telerik team
 answered on 21 Jul 2026
1 answer
12 views

Hello,
I am using a RadSplitButtonElement:
DEFINE PRIVATE VARIABLE BtnAnnulerSplit                 AS Telerik.WinControls.UI.RadSplitButtonElement NO-UNDO.

and I would like to control the number of items displayed. If there are more than can fit, display a vertical scrollbar; otherwise, do not.
I have written the following code:

DEFINE VARIABLE oMenu       AS Telerik.WinControls.UI.RadDropDownMenu NO-UNDO.
DEFINE VARIABLE iItemHeight AS INTEGER NO-UNDO.
        oMenu = BtnAnnulerSplit:DropDownMenu.
        iItemHeight = 10.

        oMenu:Maximum = NEW System.Drawing.Size(0, 20 * iItemHeight).

I do have a size, but no vertical scrollbar, which means I can’t see all the items.
Thank you for your feedback
Translated with DeepL.com (free version)

Nadya | Tech Support Engineer
Telerik team
 answered on 20 Jul 2026
1 answer
16 views

I had to revert back to 2026.2.520 because of the issues with 026.2.702

The dropdown is broken and I can't release a new build of apps to customers

And now, I found issues with gridview filtering that has worked forever in all previous builds.

After reverting back to 520 these two line work properly again.

So, I'm just writing to let you know that you should look into the next build after 702 to ensure that the 2 lines below function.

Basically, I created a usercontrol and dropped the grid onto the control.

But when I tried to drop the user control onto a form - it threw a error box and wouldn't allow the control to be dropped on the form.

Using trial and error I found that by REMing out 1 or both of the 2 lines below the Usercontrol could be dropped onto the form again.

.MasterTemplate.EnableFiltering = True

.MasterTemplate.DataView.BypassFilter = False

Here is the full routine that I use to clean up the GridView in most instances.

   Friend Sub GridInitializeGridProperties(ByVal oRadGridView As Telerik.WinControls.UI.RadGridView, ByVal Optional EnableFiltering As Boolean = True, ByVal Optional EnableExcelFiltering As Boolean = True)
       Try
           With oRadGridView
               .AutoSizeRows = True
               .TableElement.SearchHighlightColor = Color.Orange
               .Dock = DockStyle.Fill
               .ReadOnly = True
               .AllowAddNewRow = False
               .AllowDeleteRow = False
               .AllowEditRow = False
               .AutoScroll = True
               .EnableFastScrolling = True
               .SelectionMode = GridViewSelectionMode.FullRowSelect
               .AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill
               .ShowNoDataText = False
               .EnableAnalytics = False
               .MasterTemplate.BestFitColumns()
               .EnableAlternatingRowColor = True
               .EnableGrouping = False
               .AllowDragToGroup = False
               If EnableFiltering Then
                   .EnableFiltering = True
                   .ShowFilteringRow = True
                   .MasterTemplate.EnableFiltering = True
                   .MasterTemplate.DataView.BypassFilter = False
               End If
               If EnableExcelFiltering Then
                   .ShowHeaderCellButtons = True
               End If
           End With
       Catch ex As Exception
       End Try
   End Sub

 

I'm not concerned about it just now because I reverted back to the previous release - but something more than just the dropdown combos seems to be amiss.

Nadya | Tech Support Engineer
Telerik team
 answered on 20 Jul 2026
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?