{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "grid-default",
  "framework": "winforms",
  "type": "registry:component",
  "component": "Grid",
  "variant": "default",
  "dependencies": [
    "Syncfusion.Grid.Windows"
  ],
  "description": "Grid with Header/Standard/Column/Row base styles, a registered LinkLabelCell cell model hosting URL hyperlinks, and Excel-like selection frame.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 2 (v34.1.29)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/winforms/llms.txt",
    "skillPack": "syncfusion/winforms-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/winforms/grid-default.md"
  },
  "files": [
    {
      "target": "src/components/grid-default/Form1.cs",
      "content": "#region Copyright Syncfusion Inc. 2001 - 2015\n//\n//  Copyright Syncfusion Inc. 2001 - 2015. All rights reserved.\n//\n//  Use of this code is subject to the terms of our license.\n//  A copy of the current license can be obtained at any time by e-mailing\n//  licensing@syncfusion.com. Any infringement will be prosecuted under\n//  applicable laws. \n//\n#endregion\n\nusing System;\nusing System.Drawing;\nusing System.Collections;\nusing System.ComponentModel;\nusing System.Windows.Forms;\nusing System.Data;\nusing Syncfusion.Windows.Forms.Grid;\nusing Syncfusion.Windows.Forms;\nusing DemoCommon.Grid;\nusing Syncfusion.Telemetry;\n\nnamespace GridLinkLabel\n{\n\t/// <summary>\n\t/// Summary description for Form1.\n\t/// </summary>\n\tpublic class Form1 : GridDemoForm\n    {\n        #region \"API Definition\"\n\n        private Syncfusion.Windows.Forms.Grid.GridControl gridControl1;\n\t\tprivate System.Windows.Forms.Panel panel1;\n        /// <summary>\n        /// Required designer variable.\n        /// </summary>\n        private System.ComponentModel.Container components = null;\n\n        #endregion\n\n        #region \"Constructor\"\n\n        public Form1()\n\t\t{\n\t\t\t//\n\t\t\t// Required for Windows Form Designer support\n\t\t\t//\n\t\t\tInitializeComponent();\n            if(DpiAware.GetCurrentDpi() > 96)\n            {\n                this.CaptionBarHeight = (int)DpiAware.LogicalToDeviceUnits(this.CaptionBarHeight);\n            }\n            #region Custom Cells\n            gridControl1.DefaultRowHeight = (int)DpiAware.LogicalToDeviceUnits(22.0f);\n            gridControl1.ExcelLikeCurrentCell = true;\n\t\t\tgridControl1.ExcelLikeSelectionFrame = true;\n            gridControl1.ControllerOptions = GridControllerOptions.All;\n            gridControl1.HScrollBehavior = GridScrollbarMode.Disabled;\n            gridControl1.CoveredRanges.Add(GridRangeInfo.Cells(1, 1, 2, gridControl1.ColCount));\n            gridControl1[1, 1].Text = \"Derived Cell Controls\";\n            gridControl1[1, 1].Font.Bold = true;\n            gridControl1[1, 1].Font.Size = 12;\n            gridControl1[1, 1].TextColor = Color.Black;\n            gridControl1[1, 1].CellType = GridCellTypeName.Static;\n            gridControl1[1, 1].VerticalAlignment = GridVerticalAlignment.Middle;\n            gridControl1[1, 1].HorizontalAlignment = GridHorizontalAlignment.Center;\n\t\t\tgridControl1.CellModels.Add(\"LinkLabelCell\", new LinkLabelCellModel(gridControl1.Model));\n\n\t\t\tint rowIndex = 4;\t\t    \n\t\t\tgridControl1[rowIndex, 4].Text = \"Syncfusion, Inc.\";\n\t\t\tgridControl1[rowIndex, 4].Font.Bold = true;\n\t\t\tgridControl1[rowIndex, 4].Tag = \"http://www.syncfusion.com\";\n            gridControl1[rowIndex, 4].HorizontalAlignment = GridHorizontalAlignment.Center;\n            gridControl1[rowIndex, 4].CellType = \"LinkLabelCell\";\n\n\t\t\trowIndex++;\n\t\t\tgridControl1[rowIndex, 4].CellType = \"LinkLabelCell\";\n\t\t\tgridControl1[rowIndex, 4].Text = \"Windows Forms FAQ\";\n\t\t\tgridControl1[rowIndex, 4].Font.Bold = true;\n            gridControl1[rowIndex, 4].Tag = \"http://www.syncfusion.com/support/forums/grid-windows\";\n\t\t\tgridControl1[rowIndex, 4].HorizontalAlignment = GridHorizontalAlignment.Center;\n\n\t\t\trowIndex++;\n\t\t\tgridControl1[rowIndex, 4].CellType = \"LinkLabelCell\";\n\t\t\tgridControl1[rowIndex, 4].Text = \"Microsoft Windows Forms\";\n\t\t\tgridControl1[rowIndex, 4].Font.Bold = true;\n\t\t\tgridControl1[rowIndex, 4].Tag = \"https://learn.microsoft.com/en-us/dotnet/desktop/winforms/\";\n\t\t\tgridControl1[rowIndex, 4].HorizontalAlignment = GridHorizontalAlignment.Center;\n\t\t\t\n\t\t\trowIndex++;\n\t\t\tgridControl1[rowIndex, 4].CellType = \"LinkLabelCell\";\n\t\t\tgridControl1[rowIndex, 4].Text = \"MSDN\";\n\t\t\tgridControl1[rowIndex, 4].Font.Bold = true;\n\t\t\tgridControl1[rowIndex, 4].Tag = \"http://msdn.microsoft.com\";\n\t\t\tgridControl1[rowIndex, 4].HorizontalAlignment = GridHorizontalAlignment.Center;\n\n\t\t\trowIndex++;\n\t\t\tgridControl1[rowIndex, 4].CellType = \"LinkLabelCell\";\n\t\t\tgridControl1[rowIndex, 4].Text = \"Yahoo\";\n\t\t\tgridControl1[rowIndex, 4].Font.Bold = true;\n\t\t\tgridControl1[rowIndex, 4].Tag = \"http://www.yahoo.com\";\n\t\t\tgridControl1[rowIndex, 4].HorizontalAlignment = GridHorizontalAlignment.Center;\n\n\t\t\trowIndex++;\n\t\t\tgridControl1[rowIndex, 4].CellType = \"LinkLabelCell\";\n\t\t\tgridControl1[rowIndex, 4].Text = \"Google\";\n\t\t\tgridControl1[rowIndex, 4].Font.Bold = true;\n\t\t\tgridControl1[rowIndex, 4].Tag = \"http://www.google.com/\";\n\t\t\tgridControl1[rowIndex, 4].HorizontalAlignment = GridHorizontalAlignment.Center;\n\n\t\t\tgridControl1.ColWidths.ResizeToFit(GridRangeInfo.Col(4));\n\t\t\tgridControl1.ColStyles[4].TextColor = Color.Blue;\n  \n\t\t\tthis.gridControl1.DefaultColWidth = (int)DpiAware.LogicalToDeviceUnits(70.0f);\t\t\t\n\t\t\tthis.gridControl1.DefaultGridBorderStyle = GridBorderStyle.Solid;\n            gridControl1.AllowProportionalColumnSizing = true;\n            this.gridControl1.Model.Options.DisplayEmptyRows = true;\n            this.gridControl1.RowHeights[0] = 30;\n\n            #endregion\n            this.gridControl1.ColWidths[0] = (int)DpiAware.LogicalToDeviceUnits(30);\n\n        }\n\n        #endregion\n\n        #region FormHandlers\n\n        /// <summary>\n\t\t/// Clean up any resources being used.\n\t\t/// </summary>\n\t\tprotected override void Dispose( bool disposing )\n\t\t{\n\t\t\tif( disposing )\n\t\t\t{\n\t\t\t\tif (components != null) \n\t\t\t\t{\n\t\t\t\t\tcomponents.Dispose();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbase.Dispose( disposing );\n\t\t}\n\n\t\t#region Windows Form Designer generated code\n\t\t/// <summary>\n\t\t/// Required method for Designer support - do not modify\n\t\t/// the contents of this method with the code editor.\n\t\t/// </summary>\n\t\tprivate void InitializeComponent()\n\t\t{\n            Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle9 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();\n            Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle10 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();\n            Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle11 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();\n            Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle12 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle();\n            Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo4 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();\n            this.gridControl1 = new Syncfusion.Windows.Forms.Grid.GridControl();\n            this.panel1 = new System.Windows.Forms.Panel();\n            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();\n            this.panel1.SuspendLayout();\n            this.SuspendLayout();\n            // \n            // gridControl1\n            // \n            this.gridControl1.DpiAware = true;\n            this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));\n            this.gridControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) \n            | System.Windows.Forms.AnchorStyles.Left) \n            | System.Windows.Forms.AnchorStyles.Right)));\n            gridBaseStyle9.Name = \"Header\";\n            gridBaseStyle9.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);\n            gridBaseStyle9.StyleInfo.Borders.Left = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);\n            gridBaseStyle9.StyleInfo.Borders.Right = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);\n            gridBaseStyle9.StyleInfo.Borders.Top = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None);\n            gridBaseStyle9.StyleInfo.CellType = \"Header\";\n            gridBaseStyle9.StyleInfo.Font.Bold = true;\n            gridBaseStyle9.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Vertical, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216))))));\n            gridBaseStyle9.StyleInfo.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Middle;\n            gridBaseStyle10.Name = \"Standard\";\n            gridBaseStyle10.StyleInfo.Font.Facename = \"Tahoma\";\n            gridBaseStyle10.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.SystemColors.Window);\n            gridBaseStyle11.Name = \"Column Header\";\n            gridBaseStyle11.StyleInfo.BaseStyle = \"Header\";\n            gridBaseStyle11.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Center;\n            gridBaseStyle12.Name = \"Row Header\";\n            gridBaseStyle12.StyleInfo.BaseStyle = \"Header\";\n            gridBaseStyle12.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Left;\n            gridBaseStyle12.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(Syncfusion.Drawing.GradientStyle.Horizontal, System.Drawing.Color.FromArgb(((int)(((byte)(203)))), ((int)(((byte)(199)))), ((int)(((byte)(184))))), System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(234)))), ((int)(((byte)(216))))));\n            this.gridControl1.BaseStylesMap.AddRange(new Syncfusion.Windows.Forms.Grid.GridBaseStyle[] {\n            gridBaseStyle9,\n            gridBaseStyle10,\n            gridBaseStyle11,\n            gridBaseStyle12});\n            this.gridControl1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;\n            this.gridControl1.ColCount = 7;\n            this.gridControl1.ColWidthEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridColWidth[] {\n            new Syncfusion.Windows.Forms.Grid.GridColWidth(0, 35)});\n            this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;\n            this.gridControl1.Font = new System.Drawing.Font(\"Segoe UI\", 8.5F);\n            this.gridControl1.ForeColor = System.Drawing.Color.MidnightBlue;\n            gridCellInfo4.Col = -1;\n            gridCellInfo4.Row = -1;\n            gridCellInfo4.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);\n            gridCellInfo4.StyleInfo.Borders.Right = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);\n            gridCellInfo4.StyleInfo.Font.Bold = false;\n            gridCellInfo4.StyleInfo.Font.Facename = \"Segoe UI\";\n            gridCellInfo4.StyleInfo.Font.Italic = false;\n            gridCellInfo4.StyleInfo.Font.Size = 8.5F;\n            gridCellInfo4.StyleInfo.Font.Strikeout = false;\n            gridCellInfo4.StyleInfo.Font.Underline = false;\n            gridCellInfo4.StyleInfo.Font.Unit = System.Drawing.GraphicsUnit.Point;\n            gridCellInfo4.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);\n            gridCellInfo4.StyleInfo.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));\n            this.gridControl1.GridCells.AddRange(new Syncfusion.Windows.Forms.Grid.GridCellInfo[] {\n            gridCellInfo4});\n            this.gridControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;\n            this.gridControl1.GridVisualStyles = Syncfusion.Windows.Forms.GridVisualStyles.Metro;\n            this.gridControl1.DefaultRowHeight = (int)DpiAware.LogicalToDeviceUnits(20.0f);\n            this.gridControl1.DefaultColWidth = (int)DpiAware.LogicalToDeviceUnits(70.0f);\n            this.gridControl1.Location = new System.Drawing.Point(10, 12);\n            this.gridControl1.MetroScrollBars = true;\n            this.gridControl1.Name = \"gridControl1\";\n            this.gridControl1.Properties.BackgroundColor = System.Drawing.Color.White;\n            this.gridControl1.Properties.ForceImmediateRepaint = false;\n            this.gridControl1.Properties.GridLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));\n            this.gridControl1.Properties.MarkColHeader = false;\n            this.gridControl1.Properties.MarkRowHeader = false;\n            this.gridControl1.RightToLeft = System.Windows.Forms.RightToLeft.No;\n            this.gridControl1.RowCount = 20;\n            this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {\n            new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 21)});\n            this.gridControl1.SerializeCellsBehavior = Syncfusion.Windows.Forms.Grid.GridSerializeCellsBehavior.SerializeIntoCode;\n            this.gridControl1.Size = new System.Drawing.Size(996, 629);\n            this.gridControl1.SmartSizeBox = false;\n            this.gridControl1.TabIndex = 1;\n            this.gridControl1.ThemesEnabled = true;\n            this.gridControl1.DpiAware = true;\n            this.gridControl1.VerticalThumbTrack = true;\n            // \n            // panel1\n            // \n            this.panel1.BackColor = System.Drawing.Color.White;\n            this.panel1.Controls.Add(this.gridControl1);\n            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;\n            this.panel1.Location = new System.Drawing.Point(0, 0);\n            this.panel1.Name = \"panel1\";\n            this.panel1.Size = new System.Drawing.Size(1012, 653);\n            this.panel1.TabIndex = 2;\n            // \n            // Form1\n            // \n            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\n            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\n            this.ClientSize = new System.Drawing.Size(1012, 653);\n            this.Controls.Add(this.panel1);\n            this.MinimumSize = new System.Drawing.Size(430, 300);\n            this.Name = \"Form1\";\n            this.Text = \"Getting Started\";\n            this.Load += new System.EventHandler(this.Form1_Load);\n            ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();\n            this.panel1.ResumeLayout(false);\n            this.ResumeLayout(false);\n\n\t\t}\n\t\t#endregion\n\n\t\t/// <summary>\n\t\t/// The main entry point for the application.\n\t\t/// </summary>\n\t\t[STAThread]\n\t\tpublic static void Main()\n        {\n\t\t\tTelemetry.Disable();\n            Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense(Syncfusion.Licensing.DemoCommon.FindLicenseKey());\n# if SyncfusionFramework1_1 || SyncfusionFramework2_0  \n\t\t\tApplication.EnableVisualStyles();\n# endif\n\t\t\tApplication.Run(new Form1());\n        }\n\n        #endregion\n\n        #region EventHandlers\n\n        /// <summary>\n        /// Load the form for set the BasestyleMap for font\n        /// </summary>\n\n        private void Form1_Load(object sender, System.EventArgs e)\n\t\t{\n\t\t\tgridControl1.Model.BaseStylesMap[\"Header\"].StyleInfo.Font.Bold = true;\n        }\n        #endregion\n    }\n}\n"
    }
  ]
}