I’m trying to made only certain PO Releases available for Mass Receipt based off of a date filter.
I am able to hide lines in the initial selection window with this code:
private void MassReceiptsForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code
// Access eugMassReceipt UltraGrid (RcvDtlMassReceiptSelect dataview)
EpiUltraGrid myGrid = (EpiUltraGrid)csm.GetNativeControlReference("bdd4c235-c3ed-4ace-8a8f-fc9eebaa58c6");
foreach (UltraGridRow row in myGrid.Rows)
{
if (Convert.ToDateTime(row.Cells["DueDate"].Value) == DateTime.Today)
{
row.Hidden = true;
}
}
}
My problem is that the Select All button still selects all available rows. These are not directly tied to the UltraGrid used above.
I can’t seem to find a way to change the value of a field in the RcvDtlMassReceipt dataview based off the same filter criteria. Any Suggestions?