Esempio n. 1
0
    void GridView_CustomCallback(object sender, ASPxGridViewCustomCallbackEventArgs e)
    {
        ASPxGridView grid = (ASPxGridView)sender;

        string[] parameters = e.Parameters.Split(';');
        int      index;

        if (int.TryParse(parameters[0], out index))
        {
            bool isGroupRowSelected = bool.Parse(parameters[1]);
            for (int i = 0; i < grid.GetChildRowCount(index); i++)
            {
                DataRow row = grid.GetChildDataRow(index, i);
                grid.Selection.SetSelectionByKey(row["ProductID"], isGroupRowSelected);
            }
        }
    }