void DataGridView1DoubleClick(object sender, EventArgs e) { MouseEventArgs args = (MouseEventArgs)e; Point p = dataGridView1.PointToClient(new Point(args.X,args.Y)); DataGridView.HitTestInfo info = dataGridView1.HitTest(p.X, p.Y); int Row = info.RowIndex; int Col=info.ColumnIndex; if(dataGridView1.Columns[info.ColumnIndex].Name == "Employee name") { textBox1.Text="hello"; textBox1.SetBounds(args.X,args.Y,dataGridView1.CurrentCell.Size.Width,dataGridView1.CurrentCell.Size.Height); textBox1.Show(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)