Esempio n. 1
0
 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.");
     }
 }
Esempio n. 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ColumnVisibilityManager columnVisibilityManager = new ColumnVisibilityManager(gvGrid);

        Form.Controls.AddAt(0, columnVisibilityManager);
    }