Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2462

Summary: new properties to customize format for individual rows and cells
Product: TeeGrid for .NET Reporter: christopher ireland <chris>
Component: GridAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: chris, marc
Priority: ---    
Version: 1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2021-09-30 06:17:15 EDT
new Rows.Items and Grid.CellFormat collections used as in the following example:
https://github.com/Steema/TeeGrid-for-.NET/blob/master/VirtualData/Virtual%20Mode/Form1.cs

      var row = teeGrid1.Rows.Items.AddRow(4);
      row.Format.Brush.Color = Color.CornflowerBlue;
      row.Format.Brush.Show();

      //or
      teeGrid1.Rows.Items[2].Format.Brush.Show();
      teeGrid1.Rows.Items[2].Format.Brush.Color = Color.LightGoldenrodYellow;
      teeGrid1.Rows.Items[2].Format.Stroke.Color = Color.Fuchsia;
      teeGrid1.Rows.Items[2].Format.Stroke.Show();
      teeGrid1.Rows.Items[2].Format.Font.Color = Color.Red;
      teeGrid1.Rows.Items[2].Format.Font.Style = Steema.TeeGrid.Format.FontStyle.Strikeout;

      teeGrid1.Rows.Items[3000].Format.Brush.Color = Color.CornflowerBlue;
      teeGrid1.Rows.Items[3000].Format.Brush.Show();


      var cell = teeGrid1.CellFormat.AddCell(10, teeGrid1.Columns["6"].Index);
      cell.Format.Font.Style = Steema.TeeGrid.Format.FontStyle.Bold;
      cell.Format.Brush.Color = Color.HotPink;
      cell.Format.Brush.Show();

      //or
      teeGrid1.CellFormat[10, 8].Format.Brush.Color = Color.PaleGoldenrod;
      teeGrid1.CellFormat[10, 8].Format.Brush.Show();

      teeGrid1.Rows.Items[10].Format.Brush.Show();
      teeGrid1.Rows.Items[10].Format.Brush.Color = Color.CornflowerBlue;
      teeGrid1.Rows.Items[10].Format.Font.Color = Color.Red;
      teeGrid1.Rows.Items[10].Format.Font.Style = Steema.TeeGrid.Format.FontStyle.Strikeout;