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 - new properties to customize format for individual rows and cells
Summary: new properties to customize format for individual rows and cells
Status: RESOLVED FIXED
Alias: None
Product: TeeGrid for .NET
Classification: Unclassified
Component: Grid (show other bugs)
Version: 1
Hardware: PC All
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-30 06:17 EDT by christopher ireland
Modified: 2021-10-19 04:35 EDT (History)
2 users (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;