Exemplo n.º 1
0
        /// <summary>
        /// Handles cell level validation.  For this example the
        /// cell must be between 0 and 100, inclusive.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SuperGridControl1CellValidating(
            object sender, GridCellValidatingEventArgs e)
        {
            double value = (double)e.Value;

            if (value < 0 || value > 100)
            {
                e.GridCell.InfoText = "Cell Value must be between 0 and 100, inclusive";
                e.Cancel            = true;
            }
        }
Exemplo n.º 2
0
 private void superGridControl1_CellValidating(object sender, GridCellValidatingEventArgs e)
 {
 }