public static void PrintCurrentRow(BindingManagerBase bm, string sComment /* = "" */)
        {
            PrintIfNotEmpty(sComment);
            //        ' Check the type of the Current object. If it is not a
            //        ' DataRowView, exit the method.
            if (bm.Current.GetType() != typeof(DataRowView))
            {
                return;
            }
            DataRowView drv = (DataRowView)bm.Current;

            DebugOutputHelper.PrintRow(drv.Row, "");
        }
 public static void PrintView(DataView view, string sComment)
 {
     PrintIfNotEmpty(sComment);
     if (view == null)
     {
         Debug.WriteLine("view is null");
         return;
     }
     Debug.WriteLine(String.Format("view: '{0}' with {1} rows ", view.Table.TableName, view.Count));
     for (int i = 0; i < view.Count; i++)
     {
         DebugOutputHelper.PrintRow(view[i].Row, "");
     }
 }