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

6 Replies 1 reply marked as answer

MS Malini Selvarasu Syncfusion Team November 20, 2024 12:29 PM UTC

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


Marked as answer

DW Daniele Wyss November 20, 2024 02:14 PM UTC




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).



MS Malini Selvarasu Syncfusion Team November 21, 2024 08:11 AM UTC

Hi Daniele Wyss,

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.
However, as mentioned earlier, cell editing cannot be performed without an active selection. We understand that this limitation may impact your workflow, and we will plan to addressing it in future releases.
Thank you for your patience and understanding as we continue to improve this functionality.

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.
Regards,
Malini Selevarsu

 



MS Malini Selvarasu Syncfusion Team December 17, 2024 02:36 PM UTC

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



MS Malini Selvarasu Syncfusion Team December 18, 2024 01:22 PM UTC

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



MS Malini Selvarasu Syncfusion Team December 19, 2024 09:41 AM UTC

Hi Daniele Wyss,

We would like to let you know that Essential Studio Weekly NuGet packages (v28.1.35) has been published in nuget.org with the fix for the issue “FilterRow Dropdown does not open in the correct position when SelectionMode is set to None”. Please let us know if you have any concerns in this.

Root Cause:
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.
Regards,
Malini Selvarasu

Loader.
Up arrow icon