123 test one1 124 test two2 125 test three3 126 test four4
123 test one1
124 test two2
private void dataGridView1_DragDrop(object sender, DragEventArgs e) { Point clientPoint = dataGridView1.PointToClient(new Point(e.X, e.Y)); DataGridView.HitTestInfo hti = dataGridView1.HitTest(clientPoint.X, clientPoint.Y); DataGridViewCell targetCell = dataGridView1[hti.ColumnIndex, hti.RowIndex]; targetCell.Value = e.Data.GetData(DataFormats.Text).ToString().Split(' ')[1]; //for GridCell textBox1.Text = e.Data.GetData("System.String").ToString().Split()[0]; //for TextBox }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)