internal void SetColumnWidth() { int pixlo = 0, pixhi = 0; for (int bar = 0; bar < NumBars; bar++) { DataGridViewColumn col = DGV.Columns[bar]; pixhi = Frm.TicksToPix(BarToBBT[bar + 1].Ticks); col.Width = pixhi - pixlo; pixlo = pixhi; } }
internal void SetColumnWidth(Forms.IFrmDGV frm) { if (!LyricsExist) { return; } DataGridView dgv = frm.Prop_dgvLyrics; int pixlo = 0, pixhi = 0; for (int bar = 0; bar < NumBars; bar++) { DataGridViewColumn col = dgv.Columns[bar]; col.SortMode = DataGridViewColumnSortMode.NotSortable; col.Selected = true; pixhi = frm.TicksToPix(BarToBBT[bar + 1].Ticks); col.Width = pixhi - pixlo; pixlo = pixhi; } }