Hide colum

Is it possible to hide a column from the grid but have it show in the edit dialog? Visible="true" hides it from both.


1 Reply

NP Naveen Palanivel Syncfusion Team May 9, 2025 09:15 AM UTC

Hi gil shalit,


Thanks for contacting Syncfusion support.


We suggest you to achieve your requirement of displaying a column in Dialog Edit form alone not in Grid by defining the Width property of that column to 0. Refer to the below sample and code example for your reference.  


        <GridColumn Field=@nameof(Order.Freight) HeaderText="Freight" Format="C2" TextAlign="Syncfusion.Blazor.Grids.TextAlign.Right" EditType="Syncfusion.Blazor.Grids.EditType.NumericEdit" Width="120"></GridColumn>

        <GridColumn Field=@nameof(Order.ShipCountry) HeaderText="Ship Country" EditType="Syncfusion.Blazor.Grids.EditType.DropDownEdit" Width="0"></GridColumn>

    </GridColumns>

</SfGrid>

 


Sample: https://blazorplayground.syncfusion.com/embed/BZLejItEgrFBDQjl?appbar=true&editor=true&result=true&errorlist=true&theme=bootstrap5


Please get back to us if you have further queries.


Regards,

Naveen


Loader.
Up arrow icon