ComponentOne FlexGrid for WinForms
Row Class
Members  Example 

C1.Win.C1FlexGrid Namespace : Row Class
Class that represents a grid row.
Object Model
Row ClassC1FlexGridBase ClassNode ClassCellStyle ClassCellStyle ClassCellStyle ClassCellStyle ClassCellStyle ClassCellStyle Class
Syntax
'Declaration
 
Public Class Row 
   Inherits RowCol
public class Row : RowCol 
Remarks
Example
private void Form1_Load(object sender, EventArgs e)
{
            _flex = new C1FlexGrid();
            _flex.Dock = DockStyle.Fill;
            this.Controls.Add(_flex); 
            _flex.Rows.Count = 5;
            _flex.Cols.Count = 5;

            //Setting the DataType of Rows
            _flex.Rows[1].DataType = typeof(String);
            _flex.Rows[2].DataType = typeof(String);
            _flex.Rows[3].DataType = typeof(Decimal);
            _flex.Rows[4].DataType = typeof(Boolean);

            //Setting the text of Row Headers
            _flex.Rows[0].Caption = "Model Name";
            _flex.Rows[1].Caption = "Model Number";
            _flex.Rows[2].Caption = "Camera Format";
            _flex.Rows[3].Caption = "Price";
            _flex.Rows[4].Caption = "Waterproof";

            string[] modelNames = { "Leica V-LUX 30", "Nicon Coolpix", "Canon EOS 60", "Olympus PEN" };
            string[] modelNumbers = { "V-LUX 30","Coolpix A","60 D","E-P3"};
            string[] cameraFormats = { "SLR","Compact","Pro SLR"};
            Random random = new Random();
            for (int i = 0; i < 4; i++)
            {
                _flex[0,i+1]= modelNames[i];
                _flex[1, i+1] = modelNumbers[i];
                _flex[2, i+1] = cameraFormats[random.Next(0,3)];
                _flex[3, i+1] = Math.Round(random.NextDouble()*1000,2);
                _flex[4, i+1] = random.Next(0,2);
            }
            _flex.Cols[0].Width = 100;

            //Formatting
            _flex.Rows[3].Format = "c" ;

            //Using Drop down list for editing 
            _flex.Rows[2].ComboList = "SLR|Compact|Pro SLR";

            //Setting Text Alignment and Image Alignment
            _flex.Rows[3].TextAlign = TextAlignEnum.LeftCenter;
            _flex.Rows[4].ImageAlign = ImageAlignEnum.LeftCenter;

            //Setting Row Style
            CellStyle cellStyle = _flex.Styles.Add("CustomStyle");
            cellStyle.Font = new System.Drawing.Font("Sans-Serif", 8, System.Drawing.FontStyle.Bold);
            cellStyle.TextAlign=TextAlignEnum.CenterCenter;
            _flex.Rows[0].Style = cellStyle;
}
Inheritance Hierarchy

System.Object
   C1.Win.C1FlexGrid.RowCol
      C1.Win.C1FlexGrid.Row

See Also

Reference

Row Members
C1.Win.C1FlexGrid Namespace