I have a gridview that should have 2 rows with some data
101 1111111111111111111009270754A094101 // My first line data is 9000002 10000000202222223600000000000000000000000000120000000000000000000000000000000000000000000 // My 2 line line data I will add some values as they should be inserted between these 2 rows and the second row already exists Go to the last line of the DataGrade view. Like if I add values, then the values should be entered between those 2 and the row that already exists, should be moved to the last line, please any thoughts please < P>
I have edited it with the test code:
public form 1 () {InitializeComponent (); // It can be removed before using dgv.Rows.Add ("1", "1", "1"); Dgv.Rows.Add ("1", "1", "1"); Dgv.Rows.Add ("Bob", "Bob", "Bob"); Dgv.Rows.Add ("1", "1", "1"); Dgv.Rows.Add ("1", "1", "1"); Dgv.Rows.Add ("1", "1", "1"); // It can be removed before using int oldrow = 2; Dgv.Rows.Add (itemArray (dgv.Rows [oldrow])); Dgv.Rows.RemoveAt (oldrow); / * Datagreat WeaverR OL oldro = Data Grid view 1. Ro Add (Motherre (Datagreat View 1 ROS [1]); DataGridView1.Rows.Remove (oldRow) * /} object [] itemArray (DataGridViewRow line) {int a = Row.DataGridView.ColumnCount - 1; Object [] mOut = new object [a + 1]; For (int x = 0; x & lt; = a; x ++) {h [x] = line.kel [x]. value; } Return compensation; }
I apologize for all additional tests.
Comments
Post a Comment