Multiple DataGrid rows in edit mode at once

I can only have one open at a time, but I was wondering if there is a way to have the entry fields show for all of them at once? So that the user doesn't have to click each one individually.

I would like to have all rows look like the top one.

Thank you.


1 Reply

MA Mohanram Anbukkarasu Syncfusion Team September 29, 2021 06:43 AM UTC

Hi Justin, 

Thanks for contacting Syncfusion support.  

You can achieve your requirement by using GridTemplateColumn and add TextBox as CellTemplate and EditTemplate as shown in the following code example.  

Code example :  

<syncfusion:GridTemplateColumn MappingName="FirstName"> 
        <syncfusion:GridTemplateColumn.CellTemplate> 
            <DataTemplate> 
                <TextBox Text="{Binding FirstName}" Margin="5,2,5,2" VerticalContentAlignment="Center"> 
                    <TextBox.Resources> 
                        <Style TargetType="{x:Type Border}"> 
                            <Setter Property="CornerRadius" Value="3"/> 
                        </Style> 
                    </TextBox.Resources> 
                </TextBox> 
            </DataTemplate> 
        </syncfusion:GridTemplateColumn.CellTemplate> 
    <syncfusion:GridTemplateColumn.EditTemplate> 
        <DataTemplate> 
            <TextBox Text="{Binding FirstName}" Margin="5,2,5,2" VerticalContentAlignment="Center"> 
                <TextBox.Resources> 
                    <Style TargetType="{x:Type Border}"> 
                        <Setter Property="CornerRadius" Value="3"/> 
                    </Style> 
                </TextBox.Resources> 
            </TextBox> 
        </DataTemplate> 
    </syncfusion:GridTemplateColumn.EditTemplate> 
</syncfusion:GridTemplateColumn> 


Please let us know if you require further assistance from us.  

Regards, 
Mohanram A. 


Loader.
Up arrow icon