示例#1
0
        public frmBuscaInformacaoGrid(DataGridViewGuard dgv)
        {
            InitializeComponent();
            this.dgv              = dgv;
            dgv.SelectionChanged += new EventHandler(dgv_SelectionChanged);

            lblContagemRegistros.Text = "";

            _dtGrid = ((DataTable)dgv.DataSource).Clone();
            foreach (DataColumn item in _dtGrid.Columns)
            {
                item.DataType = typeof(string);
            }
            foreach (DataRow row in ((DataTable)dgv.DataSource).Rows)
            {
                _dtGrid.ImportRow(row);
            }
        }
示例#2
0
 public frmOrdenacaoGrid(DataGridViewGuard dgv)
 {
     InitializeComponent();
     this.dgv = dgv;
 }