Telerik Forums
UI for WinForms Forum
5 answers
22 views


using System.Windows.Forms;

namespace testGridViewKeyPress
{
    public partial class RadForm2 : Telerik.WinControls.UI.RadForm
    {
        private int count_;
        public RadForm2()
        {
            InitializeComponent();

            count_ = 0;
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            count_++;
            radLabel1.Text = count_.ToString();

            radGridView2.BeginUpdate();
            radGridView2.Rows.Clear();
            //I Want to Process Row Clear And Add
            radGridView2.EndUpdate();

            return true;
        }
    }
}

 


When I hold down the key, I want to clear the row of the GridView and add a new row.

However, when the number of columns increases, even if rows work is performed between BeingUpdate() and EndUpdate(),

All UI is not highlighted or updated.

If the control needs processing when in the press state like this, shouldn't I use gridview?

Or, if there is another solution, please let me know.

+What I want is for all UI to update and operate when a key is pressed.

+My telerik version 2021.3.914.40(Dev)

 

Dinko | Tech Support Engineer
Telerik team
 answered on 03 Apr 2024
1 answer
22 views

Hi,

My team is trying to make an update from WinForms 2015.1.331 to the Latest 2024 Q1 Update 2024.1.130. Asked me for the comparison RadGridView component features until 2015 Q1 version(current) vs the rest of improvements/features from current to 2024 Q1 version. Is there a better way to get this comparision without scrolling through all releases and noting down the features and manually analyzing?

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Mar 2024
1 answer
31 views

I have 2 grids with drag and drop capability, one of them is just a simple grid with 2 columns, the other grid is a grid with 3 Hierarchical Templates that have 3 associated BindingSources.

How can I, when dragging and dropping from the simple grid to the hierarchical grid, determine which Template I am dragging the row to and add it to that Template/BindingSources?

I used exactly the example code you have here (https://docs.telerik.com/devtools/winforms/controls/gridview/rows/drag-and-drop), and indeed everything works.

I just wanted to understand if it's possible to know which Template the row is being dragged to and add it exactly to that Template.

Nadya | Tech Support Engineer
Telerik team
 answered on 12 Mar 2024
1 answer
58 views

Hi,

I need a help that how I can show column in a grid header when I am grouping my data with that particular column. I need to show column as well in a grid header after grouping.


I have attested 2 Images one with Current and one with Required tag.
By looking that images my problem will be clear to you.

Hope my requirement is clear to you.

Please help me.

Thanks,
Shubham Jain
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Jul 2023
1 answer
40 views

Hi,

I have a RadGridView that is the AssociatedObject of a RadPrintDocument that I want to print via a PrintDialog:

private PrintDialog printDialog;
RadPrintDocument doc = new RadPrintDocument
{
	AssociatedObject = radGridHistorie
};

printDialog.Document = doc;
printDialog.AllowSelection = true;

if (printDialog.ShowDialog() == DialogResult.OK)
{
	doc.Print();
}

 

If I select "All" in the PrintDialog, all entries are printed on the document.

If I select "Selection" in the printDialog after having Rows selected in the GridView, no entries are on the printed document.

What is wrong?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Jul 2023
1 answer
92 views

Hi everyone,

When exporting my grid view to pdf, all the form components shrink and their text doesn't fit inside the component. I will share my code block and some screenshots with you. I look around for some clues but i didn't find anything. Please explain me how is this happening.

                GridViewSpreadExport spreadExporter = new GridViewSpreadExport(this.exportGrid, SpreadExportFormat.Pdf);
                SpreadExportRenderer exportRenderer = new SpreadExportRenderer();

                spreadExporter.ExportVisualSettings = true;
                spreadExporter.RunExportAsync(this.fileDialog.FileName, exportRenderer);

           

                
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Nov 2022
3 answers
74 views

Hi, 

In my application (latest Telerik WinForms and .NET 4.7.2) I have a grid view control which is fixed in size, scroll bars always hidden, multi select is enabled. If I press and hold the left mouse button then drag the mouse downbelow the control it scrolls (not sure why) and then throws an exception.

I have managed to reproduce the issue with a simple test application (attached) 

Kind regards
Toby

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Jul 2022
2 answers
250 views

I did some searching and finding it difficult to disable button(s) in RadGridView. 

I have a gridview with two buttons (Edit, Delete) then datacolumns in grid.

When Delete is pressed, I want to execute code, disable / hide Edit / Delete buttons on that row only.

I was able to disable the button but then all buttons are now being disabled on all rows.  Even though the buttons are disabled the commandcellClick is still executing when clicking on the disabled button.

I did add the CellFormatting  procedure but it executes so many times it's hard to know what row / cell it's on and when.

 private void gvResults_CellFormatting(object sender, CellFormattingEventArgs e)
        {
                if (e.ColumnIndex == 0)
                   {
                        RadButtonElement b = (RadButtonElement)e.CellElement.Children[0];
                        b.Enabled = false;
                        Debug.Print("Working on cell: " + e.CellElement.Value);
                    }
        }
tar
Top achievements
Rank 2
Iron
Iron
Iron
 updated answer on 29 Apr 2022
1 answer
185 views

Hi

I need floating labels in RadTextBox and RadDropDownList using telerik winforms.

Telerik has this feature implemented in their Floating Labels in kendo.react library for various controls.

However I'm using Telerik UI for Winforms R2 2020 which does not support this. In R2 2021 Telerik has added support only for floating labels Floating Labels in RadTextBox/RadTextBoxControl but not for RadDropDownList. I can't upgrade to R2 2021.

I need some customization tips to implement floating labels in both RadTextBox and RadDropDown using Telerik Winforms

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Mar 2022
1 answer
346 views

I'm using RadGridView for WinForms.  How do I get the DataRow object from the RowsChanged event below?

private void radGridView2_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
 {
     if (e.Action != NotifyCollectionChangedAction.Reset)
     {
                DataRow myRow = ????
     }
}

Thanks!

Dimitar
Telerik team
 answered on 30 Sep 2021
Narrow your results
Selected tags
Tags
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
DateTimePicker
CollapsiblePanel
Conversational UI, Chat
CAB Enabling Kit
TabbedForm
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?