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)
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?
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.
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,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?
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);
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
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)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
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!