HOw to catch/ Hide / show a ASPXGridView Column dynamically


This shows how to view or hide a ASPXGridColumn when the grid load.
There is a method called "ClientLayout" in the ASPZGridView.
You can use it for this action.
My tested example is below.

protected void ASPXGridView_ClientLayout(object sender, DevExpress.Web.ASPxClasses.ASPxClientLayoutArgs e)
    {
       
      ASPXGridViewName.Columns["Type_Column_Filed_Name_Here"].Visible = false;

}

Comments

Popular Posts