Thursday, October 1, 2009
How To Validate a Row
void gv_ValidateRow(object sender, DevExpress.XtraGrid.Views.Base.ValidateRowEventArgs e)
{
ColumnView columnview = (ColumnView)sender;
GridColumn gridcolumn = columnview.Columns["Date"];
DateTime billdate = Convert.ToDateTime(columnview.GetRowCellValue(e.RowHandle, gridcolumn));
LedgerOpeningBalance lob = (LedgerOpeningBalance)View.CurrentObject;
if (billdate > lob.Date)
{
columnview.SetColumnError(gridcolumn, "Invalid Date !! Date should be Less Than Opening Date", ErrorType.Information);
e.Valid = false;
e.ErrorText = "Invalid Date !! Date should be Less Than Opening Date";
columnview.FocusedRowHandle = e.RowHandle;
columnview.FocusedColumn = gridcolumn;
columnview.ShowEditor();
}
}
Subscribe to:
Post Comments (Atom)
Mat Table Angular
Mat Table in Angular Mat table is used to display data . its a material designed styled data-table . For using Material Table MatTableMo...
-
CriteriaOperator criteria = new BinaryOperator("Age", 30, BinaryOperatorType.Greater); CriteriaOperator criteria = CriteriaOperato...
-
SortingCollection sc = new SortingCollection(); sc.Add (new SortProperty("field on which you want to sort",DevExpress.Xpo.DB.Sorti...
-
Minification and Uglyfication in Angular Deployement Minification : While building Angular Application white spaces , unused variable , u...
No comments:
Post a Comment