protected void ASPxGridView1_HtmlFooterCellPrepared(object sender, ASPxGridViewTableFooterCellEventArgs e)
        {
            ASPxGridView grid = (ASPxGridView)sender;

            if (e.Column is GridViewCommandColumn && e.IsTotalFooter)
            {
                ASPxLabel label = (ASPxLabel)grid.FindFooterCellTemplateControl(e.Column, "ASPxLabel1");
                label.Text = grid.Selection.Count.ToString();
            }
        }