Cell Value invisible when edited - After Grid Grouping

Hi,

I have grouped the grid based on a column which has 0 width. When i try to edit a cell in the grouped rows the cell value goes invisible after edit. I need to collapse and expand again to make the cell value visible. How this can be avoided?

below is the screenshot of invisible data in cell.



1 Reply

SK Shivagurunathan Kamalakannan Syncfusion Team January 26, 2018 10:03 AM UTC

Hi Joseph, 
Thanks for contacting Syncfusion Support, 
We have checked your query. The issue edited cell value which is not updated in the SfDataGrid is not reproduced on our side. 
 
  • Note: Implement “INotifyPropertyChanged” to the model properties to avoid value update issues when property change occurs.
 
 
The grouped column can be collapsed by setting  the property ShowColumnWhenGrouped as false.  
 
Refer the below code more details. 
 
 
<sfgrid:SfDataGrid x:Name="dataGrid"  AllowEditing="True" 
               ItemsSource="{Binding OrdersInfo}"  
               AutoGenerateColumns="False" 
               ColumnSizer="Auto" AllowGroupExpandCollapse="True" ShowColumnWhenGrouped="False"> 
 
    <sfgrid:SfDataGrid.Columns> 
        <sfgrid:GridTextColumn MappingName="OrderID" HeaderText="Order ID"/> 
        <sfgrid:GridTextColumn MappingName="CustomerID" HeaderText="Customer ID"/> 
        <sfgrid:GridTextColumn MappingName="FirstName" HeaderText="First Name"/> 
        <sfgrid:GridTextColumn MappingName="LastName" HeaderText="Last Name"/> 
        <sfgrid:GridTextColumn MappingName="ShipCountry" HeaderText="Ship Country"/> 
    </sfgrid:SfDataGrid.Columns> 
 
    <sfgrid:SfDataGrid.GroupColumnDescriptions> 
        <sfgrid:GroupColumnDescription ColumnName="CustomerID"/> 
    </sfgrid:SfDataGrid.GroupColumnDescriptions> 
 
</sfgrid:SfDataGrid> 
 
 
If the issue still persists on your side can you please modify the sample to reproduce the issue. 
 
We have prepared a sample based on your requirement and you can download the same from the below link. 
 
Regards, 
Shivagurunathan. K 


Loader.
Up arrow icon