for(r=0;r<=row-2;r++) { txtValueChange.Left = dataGridView1.Left + dataGridView1.ColumnHeadersHeight + 8 + dataGridView1.Columns[0].Width; if (!dataGridView1.CurrentRow.IsNewRow) { for (int j = 1; j<= 7; j++) { if (dataGridView1.Rows[r].Cells[j].Selected == true) { txtValueChange.Width = dataGridView1.Columns[j].Width; txtValueChange.Left += dataGridView1.Columns[j].Width; } } txtValueChange.Top += dataGridView1.RowTemplate.Height; lbRateID.Top += dataGridView1.RowTemplate.Height; }
txtValueChange.Left += dataGridView1.Columns[j].Width;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)