Hi Nisha,
have a look at section 2.4 in the datagrid2 documentation https://docs.mendix.com/appstore/modules/data-grid-2/#24-hiding