I want to pass the data from a datagridview1 to another datagridview2 by pressing a button, but I want all the selected data to be passed. Until now I only get the records to go through one by one, that is a row. My problem is I can not get all...
The current situation is that I have this
dataGrid1.ItemsSource = dt.DefaultView;
datagridajuste();
The problem is that when I fill in my "datagrid" (no datagridview), this generates empty tables at the beginning and at the end....
I have a DataGridView that gets me values from a SQL Server table, I select a product and when I give click to the next cell, I get its price, this is generated with the event CellEndEdit , but I require change the pri...
Hello friends, I'm trying to compare a grid record, 2 values.
DataGridViewRow row = dgvList.Rows[idx];
if (row.Cells[3].Value.Equals(row.Cells[5].Value.ToString())) {
var alta = Application.OpenForms.OfType<Alt...
I am giving color to the row of DataGridView if the cell box is selected, I have created a function which I invoke in the event CellValueChanged of DataGridView works fine, but only when it is the user that check the box, i...
Hi, I have a problem that if I double-click on a datagrid header it returns an error in the CellDoubleClick event, I am interested in the event being valid for all the cells except the headers, I tried with e.RowIndex> 0 or e.RowIndex < >...
I have a DataGridView that contains several columns and there are two Columns which should only allow the user to type the time , I have made it from the following way:
Event EditingControlShowing to invoke the KeyPress method:...
A DataGridViewComboBoxColumn does not have the properties SelectedIndex , and SelectedValue . However, I want to get the same behavior of SelectedValue
I have a DataGridView that contains several columns of whic...
The problem is that in editing mode when doing copy-paste control is used and the arrow to move to the cell below but if you keep pressed control and the arrow goes to the last record of the datagridview and this will make the users are wrong, i...
Good, I'm doing a project in windows form and what it does is upload an excel file pass the data to a dataGridView and save them in a MySQL database, the problem is that this excel shows data of a cycle of 4 months and this is the last month the...