|
//Event Triggering
this.gridGroupingControl1.QueryCellStyleInfo += newGridTableCellStyleInfoEventHandler(gridGroupingControl1_QueryCellStyleInfo);
//Event Customization
void gridGroupingControl1_QueryCellStyleInfo(object sender,GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.TableCellType == GridTableCellType.ColumnHeaderCell
&& this.gridGroupingControl1.GridVisualStyles == GridVisualStyles.Metro
&& e.TableCellIdentity.Column.Name == "ColumnName")
{
e.Style.CellType = "CheckBox";
e.Style.CellValueType = typeof(bool);
e.Style.Description = "ColumnName";
e.Style.CellValue = CheckBoxValue;
e.Style.BackColor = Color.White;
//Metro border color
Color metroColor = Color.FromArgb(94, 171, 222);
//Right border color
Color rightBorder = Color.FromArgb(215, 215, 215);
e.Style.Borders.Bottom = new GridBorder(GridBorderStyle.Solid, metroColor ,GridBorderWeight.ExtraThick);
e.Style.Borders.Right = new GridBorder(GridBorderStyle.Solid, rightBorder,GridBorderWeight.Thin);
e.Style.CellAppearance = GridCellAppearance.Flat;
}
e.Handled = true;
} |
|
Query |
Response |
|
when i check/uncheck of a checkbox, then click on Filter, chose a text then press OK button, nothing happen, the grid does not reload record match with Filter value. |
We can reproduce the reported scenarios and we have confirmed this is a bug. So, we have logged the bug report for this issue “ExcelFilter misbehaves while adding the checkbox column in GridGroupingControl”. It will be available on our next main release 2018 Volume 3 SP1 which is planned to release at the end of October 2018. |
|
after edit text from RichTextBox(in DropDown)then click on button Save, the Value of RichTextBox of that cell change into strange text.
In this image below, the text change into {\rtf1\ansi.........
| |
|
How to clear all Filter of all column ( i need to reload Table ) |
To clear all the filters for GridGroupingControl, you could use theRecordFilters.Clear method. Please refer the following code example and the UG link,
Code example
this.gridGroupingControl1.TableDescriptor.RecordFilters.Clear();
|