net10.0-windows10.0.22621
namespace System.Windows.Forms
{
    [Browsable(false)]
    [ClassInterface(ClassInterfaceType.AutoDispatch)]
    [ComplexBindingProperties("DataSource", "DataMember")]
    [ComVisible(true)]
    [DefaultEvent("Navigate")]
    [DefaultMember("Item")]
    [DefaultProperty("DataSource")]
    [Designer("System.Windows.Forms.Design.DataGridDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
    [EditorBrowsable(EditorBrowsableState.Never)]
    [Obsolete("`DataGrid` is provided for binary compatibility with .NET Framework and is not intended to be used directly from your code. Use `DataGridView` instead.", false, DiagnosticId = "WFDEV006", UrlFormat = "https://aka.ms/winforms-warnings/{0}")]
    public class DataGrid : Control, ISupportInitialize, IDataGridEditingService
    {
        protected virtual bool ShouldSerializeGridLineColor();
    }
}
.NET
10.0
.NET Core
3.0
.NET Framework
2.03.54.04.54.5.14.5.24.64.6.14.6.24.74.7.14.7.24.84.8.1
Information specific to net10.0
Platforms This API is only available when you target a specific platform:
Windows
7.08.010.0.1776310.0.1836210.0.1904110.0.2034810.0.2200010.0.22621
Information specific to net10.0-windows10.0.22621
Assembly

System.Windows.Forms , Version=10.0.0.0, PublicKeyToken=b77a5c561934e089

Referencing

Your project needs to set <UseWindowsForms>True</UseWindowsForms>.

Platform Restrictions

This API is only supported on the following platforms:

  • Windows >= 6.1
  • Built-in API
  • Package-provided API