Hi ,
I am using the relational gridview. when i click the button , i want the node will be expanded by condition . Follow the link : https://docs.telerik.com/devtools/winforms/controls/gridview/hierarchical-grid/how-to/expanding-all-rows . is it the best way to do it ? because i see it is really slow when expanding.
void ExpandAllRows(GridViewTemplate template, bool expanded) {
foreach(GridViewRowInfo row in template.Rows) {
if(row.Tag == conditionID){
row.IsExpanded = expanded;
}
}
if (template.Templates.Count > 0) {
foreach(GridViewTemplate childTemplate in template.Templates) {
ExpandAllRows(childTemplate, true);
}
}
}
Hello everyone,
When I design GridViewDecimal Column, I don't want to use automatic data filling. How can I turn it off? Who can help me? Thank you very much.
Specifically as follows: picture_gridview
Hello Everyone,
I am working on a custom user control which has a GridView on it. I have a checkbox column and have the EnableHeaderCheckBox property set to TRUE. The grid works great; I can click on the Header Checkbox and toggle all checkboxes, etc. However, I am trying to create a method to allow the consumers of this user control to programmatically Select All or Unselect All (basically, mimicking the functionality of the Header Checkbox).
I have tried these but they did not work:
1)
grid.SelectAll();
grid.ClearSelection();
2)
foreach
(var row
in
grid.Rows)
row.IsSelected =
true
;
Only this one works, but it takes a little bit of time to select/unselect all rows:
foreach
(var row
in
grid.Rows)
row.Cells[
"Select"
].Value =
true
;
//or false to unselect
When I click on the Header Checkbox, rows are selected/unselected immediately, which is what I am looking for. I also need to make sure that the grid_CellValueChanged event is fired.
Any help is greatly appreciated.
Thanks!
Hello, everyone.
I used to use the DataGridVew. Rows (a). DefaultCellStyle. BackColor attribute in DataGridVew.
Now I want to implement:
DataGridVew1. Rows (a). DefaultCellStyle. BackColor = Color. Red.
How do I implement it in RadGridView? Who can help me?
Hello everyone,
When I use the RadGridView control, I want to reserve three decimal digits for column 4 of the table, but I can't find the decimplaces attribute using
RadGridView.
For example: GridView_GVDetails. columns ("Quantity"). decimplaces = 3 It is prompted that decimplaces are not a member of GridViewDataColumn.
Dear All,
I have a problem.
Due to customer requirements, I set the SelectionMode attribute of radgridvbiew to CellSelect.
But I find that I can't select the whole row, because the row's header can't be selected
But I can't change the SelectionMode to FullRowSelect.
What should I do?
Who can help me?
Best wishes
Hello everyone.
When I use the RadGridView control, I want to add data to the table that can be entered into four decimal places, but when the data is entered,
it automatically rounds to save two decimal places; I want it to show how to solve multiple decimal places;
Dear all,
After setting the selectionmode attribute to CellSelect in RadGridView, look at the photos below.
Click on the area in the red circle and the back cell row becomes highlighted in orange. However, the inner part of the circle does not change color.
This is not a whole row selection, I need a whole row selection
Is that possible?
What should I do?
Best wishes
hi
is possible set scroll bar for one cell?