Exemple #1
0
        private void ClearPreviousMatches(string MatchType)
        {
            if (PotentialMatches.Rows.Count == 0)
            {
                return;
            }

            //wipe out existing matches in a group, because each batch should be considered an entirely new list of hits
            using (DataView v = new DataView(PotentialMatches))
            {
                v.RowFilter = "MatchType = '" + MatchType + "'";
                v.ClearRows();
            }
        }
Exemple #2
0
    public static void ClearRows(object v)
    {
        DataView dv = v as DataView;

        if (dv != null)
        {
            dv.ClearRows();
            dv.Dispose();
        }

        DataRowView drv = v as DataRowView;

        if (drv != null)
        {
            drv.ClearRow();
        }
    }