To reproduce: - Create a RadGridView with 3 columns. - Set ShowRowHeaderColumn to false. - Set GridViewAutoSizeColumnsMode to Fill. - Select a cell and hit the TAB key multiple times. Notice the entire grid shift left and right.
To reproduce: Add a RadGridView wth a few columns ,add rows as a few rows should have increasingly long text. Right click on the header cell to show the context menu and click bestfit. You will notice that the size of the column is not correct Workaround: void grid_MouseMove(object sender, MouseEventArgs e) { this.mouseLocation = e.Location; } private Point mouseLocation; private GridViewColumn currentColumn; void grid_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e) { if (this.grid.CurrentRow is GridViewHierarchyRowInfo) { RadItem bestFitItem = e.ContextMenu.Items.FirstOrDefault(x => x.Text == "Best Fit"); if (bestFitItem != null) { e.ContextMenu.Items.Remove(bestFitItem); } RadMenuItem newBestFitItem = new RadMenuItem { Text = "Best Fit" }; this.currentColumn = (this.grid.ElementTree.GetElementAtPoint(this.mouseLocation) as GridCellElement).ColumnInfo; newBestFitItem.Click += newBestFitItem_Click; e.ContextMenu.Items.Add(newBestFitItem); } } void newBestFitItem_Click(object sender, EventArgs e) { int highestWidth = this.GetHeightestWidthFromColumn(this.currentColumn); this.currentColumn.Width = highestWidth; } private int GetHeightestWidthFromColumn(GridViewColumn gridViewColumn) { int max = int.MinValue; Font cellFont = this.grid.TableElement.VisualRows[0].VisualCells[0].Font; for (int i = 0; i < this.grid.Rows.Count; i++) { int textWidth = TextRenderer.MeasureText(this.grid.Rows[i].Cells[gridViewColumn.Index].Value + "", cellFont).Width; if (max < textWidth) { max = textWidth; } } return max; }
IIF function in Expression for calculated columns does not work.
There is wrong current row selection for bound RadGridView, when using AddNew and ResetBindings methods on same BindingSource.
When loading layout in RadGridView, combo box columns lose their data-sources.
When adding new row, before finishing it - leave the grid focus (click a button outside the grid for example). The new row has been added but RowValidating event does not thrown.
If there is not VerticalScrollbar in RadGridView, pressing PageUp/Down keys leads to unexpected behavior. To reproduce the issue just place a RadGridView in a Form and add a couple rows, but not enough to vertical scrollbar apear. Run the project and test repeated PageDown and PageUp key presses.
In the add new row element there is some cells€™ values, which are set through code (programmatically). However, if there is not at least one cell, which was manually edited (changed its value), the row cannot be committed.
Allow setting the CurrentColumn/CurrentCell in the RowValidaging event
Allow hiding the SummaryRowItems in RadGridView's Groups
Resolution: Individual cells cannot have specific FormatString since the property is bound to column's FormatString
When a RadGridView instance is initialized in the Form's constructor, the grid is not assigned a binding context. Note: This is a desired behavior.
RadGridView cannot display any data when bound to a List<IObject> filled with different implementations of the interface.
Set AutoSizeRows and WrapText to true. Start resizing the form. You will see that the cell size is wrong.
When canceling the CurrentRowChanging event and the changing row is the new row, then the click here to add new row text will not be visible anymore.
1. Create a new project with RadGridView 2. Bind a hierarchy with a large number of rows 3. Add two buttons and on button click call ExpandAll and CollapseAll methods 4. Run the project and click the first button
IMPROVE. RadExpressionEditorForm - add ability to be shown as modal form
This way, one will be able to make sure that the expression is valid prior assigning it to the column
IMPROVE. RadExpressionEditorForm - one should be able to access the form and its controls in order to customize their appearance
FIX. RadGridView - the TextAlignment property of GridViewHyperlinkColumn is not taken into consideration Reproduce: - add RadGridView private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'nwindDataSet.Customers' table. You can move, or remove it, as needed. this.customersTableAdapter.Fill(this.nwindDataSet.Customers); DataColumn colContactName = nwindDataSet.Customers.Columns["ContactName"]; DataColumn colAddress = nwindDataSet.Customers.Columns["Address"]; this.radGridView1.Columns.Add(colContactName.ColumnName); this.radGridView1.Columns.Add(colAddress.ColumnName); this.radGridView1.Columns.Add(new GridViewHyperlinkColumn(colAddress.ColumnName + " Link")); this.radGridView1.Columns["Address"].TextAlignment = ContentAlignment.MiddleRight; this.radGridView1.Columns["Address Link"].TextAlignment = ContentAlignment.MiddleRight;// Different alignment between the two columns foreach (DataRow row in nwindDataSet.Customers.Rows) { this.radGridView1.Rows.Add(row.ItemArray[2], row.ItemArray[4], row.ItemArray[4]); } } Workaround: private void radGridView1_CellFormatting(object sender, CellFormattingEventArgs e) { GridHyperlinkCellElement cell = e.CellElement as GridHyperlinkCellElement; if (cell != null) { cell.ContentElement.TextAlignment = ContentAlignment.MiddleRight; } }