private void addIzvedbaCaptionCell(int row) { int leftIndex = gridElementi.Columns["RedBroj"].Index; int rightIndex = gridElementi.Columns["GrupaBroj"].Index; for (int i = leftIndex; i <= rightIndex; i++) { IzvedbaCaptionCell cell = new IzvedbaCaptionCell(leftIndex, rightIndex, this); gridElementi.Rows[row].Cells[i] = cell; cell.ReadOnly = true; // cell.Style.Font = new Font(gridElementi.DefaultCellStyle.Font, FontStyle.Regular); cell.Style.Font = new Font("Arial", 9); } gridElementi.Rows[row].Cells[leftIndex].Value = "IZVEDBA"; }
private void addIzvedbaCaptionCell(int row) { int leftIndex = gridElementi.Columns["RedBroj"].Index; int rightIndex = gridElementi.Columns["GrupaBroj"].Index; for (int i = leftIndex; i <= rightIndex; i++) { IzvedbaCaptionCell cell = new IzvedbaCaptionCell(leftIndex, rightIndex, this); gridElementi.Rows[row].Cells[i] = cell; cell.ReadOnly = true; // cell.Style.Font = new Font(gridElementi.DefaultCellStyle.Font, FontStyle.Regular); cell.Style.Font = new Font("Arial", 9); } gridElementi.Rows[row].Cells[leftIndex].Value = "IZVEDBA"; }