Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- row.Table.DefaultView[row.Table.Rows.IndexOf(row)]
- DataRowView newRowView = null;
- foreach (DataRowView tempRowView in myDataTable.DefaultView)
- {
- if (tempRowView.Row == rowToMatch)
- newRowView = tempRowView;
- }
- if (newRow != null)
- UseNewRowView(newRowView);
- else
- HandleRowNotFound();
Add Comment
Please, Sign In to add comment