Open Dataset Designer , right click on the DataTable you wanted.
it will create partial class YourDataTableName.
and then on the
Create your Validation Sub
For instance
void CheckWorkTypeID(DirectCostRow directcostrow)
{
if (directcostrow.WorkTypeID == 0 || directcostrow.WorkTypeID == DBNull.Value)
{
directcostrow.SetColumnError("WorkTypeID", "Please Input A WorkTypeID");
}
}
Langganan:
Posting Komentar (Atom)
1 komentar:
mas bisa ajarkan saya sychronize dari excel ke database ga?
wakakakak. apa kabar loe?
Posting Komentar