public void GridColDesign(ASPxGridView gridView, string fieldName, string Caption, int Width , int Index, bool isVisible) { GenerateGridParams GridSetup; GridSetup = new GenerateGridParams(fieldName); GridSetup.Caption = Caption; GridSetup.Width = Width; GridSetup.Visible = isVisible; GridSetup.Index = Index; gridView.cxGenerateGrid(GridSetup); }