FilterRow strange effect when GridSelectionMode.None
I have a strange effect when I set no grid selection.
sfDataGrid1.SelectionMode = GridSelectionMode.None;
Attached you have the images for the 2 cases:
Case 1 - Works as Expected
Case 2 does not work as expected (drop down at the left side and no text can be edited at sort row)
I used the example SfDataGrid_Net80_3f7e5eb8 :
public Form1()
{
InitializeComponent();
_orderInfos = new OrderInfoCollection();
//Adding SortColumnDescription programmatically
SortColumnDescription sortColumnDescription = new SortColumnDescription();
sortColumnDescription.ColumnName = "CustomerID";
sortColumnDescription.SortDirection = ListSortDirection.Ascending;
sfDataGrid1.SortColumnDescriptions.Add(sortColumnDescription);
// Added to the original code
sfDataGrid1.FilterRowPosition = RowPosition.FixedTop;
// When I enable to next line the issue is coming
// sfDataGrid1.SelectionMode = GridSelectionMode.None;
sfDataGrid1.DataSource = _orderInfos.Orders;
}
Attachment: Images_8cab0ae7.zip
Hi Daniele
Wyss,
Thank you for sharing the detailed information regarding the issue you're
facing. Please find our responses to your queries below:
|
Query |
Response |
|
drop down at the left side
|
We have checked the reported issue "FilterRow Dropdown does not open in the correct position when SelectionMode is set to None" as a defect. We have logged a bug, and it will be fixed in upcoming Weekly
NuGet release which is scheduled for December 17, 2024. You can track the status of this report through the following feedback link,
Feedback Link: FilterRow
Dropdown does not open in the correct position when SelectionMode is set to
None in WinForms | Feedback Portal Note:
The provided feedback link is private, and you need to log in to view this
feedback. We
will let you know once it is released. We appreciate your patience until
then. Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
|
|
no text can be edited at sort row |
Based on the information provided, it appears that you are attempting to edit a column without making a selection. However, the editing process in SfDataGrid relies on the current cell selection, and without an active selection, cell editing cannot be performed. This is the expected behavior. |
Regards,
Malini Selvarasu
no text can be edited at sort row | Based on the information provided, it appears that you are attempting to edit a column without making a selection. However, the editing process in SfDataGrid relies on the current cell selection, and without an active selection, cell editing cannot be performed. This is the expected behavior. |
As far as I saw it is not possible to specify a different selection mode for the filter row.
For now I solved by changing the selection mode when the mouse is over the filter row (not optimal but looks like working).
Based on the information provided, it appears that you have dynamically changed the SelectionMode when the cursor position is placed over FilterRow. We are pleased to hear that the solution has worked for you.
As previously mentioned, we will fix the issue "FilterRow dropdown does not open in the correct position when SelectionMode is set to None," and it will be included in the upcoming Weekly NuGet release scheduled for December 17, 2024. We appreciate your patience in the meantime.
Malini Selevarsu
Hi Daniele Wyss,
The weekly release has been scheduled for December
18th, 2024. We will notify you once it is published. We appreciate your
patience and understanding in the meantime.
Regards,
Malini Selvarasu
Hi Daniele Wyss,
The weekly release has been rescheduled for December 19th, 2024. We will notify you once it is published. We appreciate your patience and understanding in the meantime.
Regards,
Malini Selvarasu
We calculate the location of the FilterRow dropdown based on the CurrentCell. When the GridSelectionMode is set to None, the CurrentCell returns -1, causing the location to be calculated incorrectly. This is the root cause of the issue.
- 6 Replies
- 2 Participants
- Marked answer
-
DW Daniele Wyss
- Nov 19, 2024 10:25 AM UTC
- Dec 19, 2024 09:41 AM UTC