void dgvMapper_Scroll(object sender, ScrollEventArgs e) { int intCnt = 0; foreach (UserControl ucEL) { ucEL.Visible = false; Rectangle rect = this.dgvMapper.GetCellDisplayRectangle(1, intCnt, false); ucEL.Location = rect.Location; ucEL.Size = rect.Size; if (!(rect.X==0 && rect.Y==0 && rect.Height==0)) ucEL.Visible = true; intCnt++; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)