To reproduce use the code above and when the application starts double click the column in order to best fit it : RadGridView radGridView1 = new RadGridView(); this.Controls.Add(radGridView1); radGridView1.Columns.Add("some text"); radGridView1.HideSelection = true;
Allow drag and drop of rows, when RadGridView is in bound mode. Please refer to the following article demonstrating how to do that: http://www.telerik.com/help/winforms/gridview-rows-drag-and-drop.html
There should be a way to enable the auto filter functionality of Excel when exporting a grid through ExportToExcelML. To enable the AutoFilter for cells C1 to C4 on row 2: ExportToExcelML exporter = new ExportToExcelML(this.radGridView1); exporter.ExcelTableCreated += new ExcelTableCreatedEventHandler(exporter_ExcelTableCreated); exporter.RunExport(file.FullName); private void exporter_ExcelTableCreated(object sender, ExcelTableCreatedEventArgs e) { AutoFilterElement el = new AutoFilterElement(); el.Attributes.Add("x:Range", "R2C1:R2C4"); el.Attributes.Add("xmlns", "urn:schemas-microsoft-com:office:excel"); e.ExcelTableElement.Workbook.Worksheets[0].InnerElements.Add(el); } private class AutoFilterElement : Telerik.WinControls.UI.Export.ExcelML.ElementBase { protected override string StartTag { get { return "<AutoFilter{0}>"; } } protected override string EndTag { get { return "</AutoFilter>"; } } }
Closing a form in CellDoubleClick event causes NullReferenceException in RadGridView.
When RadGridView is scrolled while selecting (SelectionMode is CellSelect), the control throws exception.
When you copy from excel & if there are some empty columns in the excel file those empty columns aren't copied.The grid simply ignores the empty columns.Just run the attached sample project and copy the content from excel file and paste on the grid.T
1. Create a new project with RadGridView and setup hierarchy with three levels. 2. Add a button and when handling its Click event call the ExpandAll method. 3. Run the project and expand the first row. 4. Click the button.
1. Create a new project with RadGridView. 2. Setup hierarchy with two child templates. 3. Set the AutoSizeRows to true. 4. Run the project, select the second template on 5 consecutive rows. 5. Start scrolling up and down with the mouse wheel slowly. 6. Click on a child row.
FIX. RadGridView - FilterOperator.IsEqualTo and FilterOperator.IsNotEqualTo should work with null using System; using System.Data; using System.Windows.Forms; using Telerik.WinControls.Data; using Telerik.WinControls.UI; namespace Lab.Grid { public partial class GridFilterEqualNullSupport : MainForm { private RadGridView gridView = new RadGridView(); public GridFilterEqualNullSupport() { InitializeComponent(); gridView.Dock = DockStyle.Fill; gridView.Parent = this; gridView.BringToFront(); gridView.EnableFiltering = true; } protected override void OnLoad(EventArgs e) { base.OnLoad(e); DataTable table = new DataTable(); table.Columns.Add("Id", typeof(int)); table.Columns.Add("Name"); table.Columns.Add("Number", typeof(DateTime)); table.Rows.Add(1, "Ivan", DateTime.Now); table.Rows.Add(2, "Ivan", DateTime.Now.AddDays(-1)); table.Rows.Add(null, "Peter", DateTime.Now); table.Rows.Add(4, "George", null); table.Rows.Add(5, "George", null); table.Rows.Add(null, "George", null); table.Rows.Add(7, "Enzo", DateTime.Now.AddDays(-3)); table.Rows.Add(8, "Enzo", DateTime.Now.AddDays(5)); table.Rows.Add(null, "Enzo", null); table.Rows.Add(10, "Enzo", DateTime.Now.AddDays(-1)); gridView.DataSource = table; } protected override void OnButton1Click() { base.OnButton1Click(); FilterDescriptor filter1 = new FilterDescriptor("Id", FilterOperator.IsEqualTo, null); gridView.FilterDescriptors.Add(filter1); } protected override void OnButton2Click() { base.OnButton2Click(); FilterDescriptor filter1 = new FilterDescriptor("Id", FilterOperator.IsNotEqualTo, null); gridView.FilterDescriptors.Add(filter1); } protected override void OnButton3Click() { FilterDescriptor filter1 = new FilterDescriptor("Id", FilterOperator.IsEqualTo, ""); gridView.FilterDescriptors.Add(filter1); } } } 1. Open attached project and run it. 2. Click button 1 and you will see that is not apply
Use the ticket project: - type in filtercell T2 the following text: test - make no commit of the filter cell! - click directly on the radbutton of the ribbonbar - click in the filter cell of T2 - click in grid - click in filter cell of T2 - click in grid
1. Create a new project with RadGridView and bind it. 2. Run the application. 3. Double click on a column to best fit. 4. Double click the same column twice
Steps to reproduce. 1. Add a RadGridView to a form 2. Add a decimal column and set its DataType to any unsigned integer type (uint16, uint32, uint64) 3. Add some values and export the grid with ExportToExcelML 4. You will see that in the exported grid the cells in the column would have "0" as a value.
There is an exception in RadGridView when using conditional formatting and sorting the grid descending.
The following line leaves the visual lines of the child templates selected: this.radGridView1.ClearSelection() To workaround the issue use this.radGridView1.TableElement.UpdateView() after clearing the selection.
I have a problem with read only columns. When I paste a value (CTRL+V) on a cell from a read only column the value from that cell is changed with the value from the clipboard.
FIX. RadGridView - exception when BestFitColumns is called during data update
You cannot changed the value of a check box cell for more than one child rows in object relation hierarchy.
If the child template of a grid has a HtmlViewDefinition and AutoSizeColumnsMode property set to Fill, the cells are not measured properly when the row is resized horizontally.
1. Create a new project with RadGridView and bind it. 2. Add a button and when handling its Click event set the CurrentRow to null. 2. Run the project. 3. Start narrator. 4. Sort by some column. 5. Click the button.
In html view definition and hierarchy mode, the RadGridView throws exception when the TableElement is in explorer bar mode.