protected void OnCustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e) { if (e.Parameters.IndexOf(ColumnVisibilityManager.CvmCallbackPrefix) == 0) { ColumnVisibilityManager.ProcessCallback(sender as ASPxGridView, e.Parameters); } else { throw new InvalidOperationException("Invalid callback parameters."); } }
protected void Page_Load(object sender, EventArgs e) { ColumnVisibilityManager columnVisibilityManager = new ColumnVisibilityManager(gvGrid); Form.Controls.AddAt(0, columnVisibilityManager); }