private void MovePage(SPGridView gridView, Selection.SelectionTableDataTable destination, Selection.SelectionTableDataTable source) { foreach (GridViewRow _cr in gridView.Rows) { Label _idLabel = (Label)_cr.FindControlRecursive(m_IDItemLabel); Selection.SelectionTableRow _slctdItem = source.FindByID(_idLabel.Text); destination.GetRow(_slctdItem); } }
private static void GetRow(SPGridView sender, GridViewSelectEventArgs e, Selection.SelectionTableDataTable destination, Selection.SelectionTableDataTable source) { if (sender == null) { return; } GridViewRow row = sender.Rows[e.NewSelectedIndex]; string _id = ((Label)row.FindControlRecursive(m_IDItemLabel)).Text; destination.GetRow(source, _id); e.NewSelectedIndex = -1; e.Cancel = true; }
internal void GetRow(Selection.SelectionTableDataTable source, string id) { GetRow(source.FindByID(id)); }