Remove from the GridMultiColumnDropDownList ItemsSource the current item from which the dropdown is opened

Hello, 

I have a SfDatagrid loaded with records from a database table , with some GridTextColumns (eg Code ) and a GridMultiColumnDropDownList ( Alternative Id ) .

For now , both SfDataGrid ItemsSource and  GridMultiColumnDropDownList  ItemsSource are binded to the same list of items from the ViewModel. 

How can I remove from the  GridMultiColumnDropDownList  ItemsSource the current item from which I open the Dropdown ? For example , I am on the row with "Code1" , when I open the dropdown with the alternatives I don't want to have the option "Code1".

Tried to remove it directly from the VM and make another list , but the SelectionMode I am using is Multiple , so in the VM I have a list of SelectedItems , I need to - somehow - access the current item .


Thanks


3 Replies

SS Sampathnarayanan Sankaralingam Syncfusion Team March 14, 2022 07:37 PM UTC

Hi Vicky,


We are checking possibilities to achieve the requirement. We will check and update you with more details on March 16, 2022.


Regards,

Sampath Narayanan.S



SS Sampathnarayanan Sankaralingam Syncfusion Team March 16, 2022 08:02 PM UTC

Hi Vicky,


We are checking possibilities to achieve the requirement. We will check and update you with more details on March 18, 2022.


Regards,

Sampath Narayanan.S



SS Sampathnarayanan Sankaralingam Syncfusion Team March 18, 2022 12:21 PM UTC

Hi Vicky, 
 
You can access the currently focused row or cell when selection mode is multiple using the SfDataGrid.CurrentItem. Please refer the below link for more details. 
 
 
Regards, 
Sampath Narayanan.S 


Loader.
Up arrow icon