Exemplo n.º 1
0
        public static string Clone(ref DataGridView dgv)
        {
            if (dgv == null)
            {
                return("The Data Grid cannot be null");
            }

            DataTable dt = GetDataSource <DataTable>(ref dgv);

            Tables.CloneRows(ref dgv, ref dt);

            return("OK! Selected cells were cloned");
        }