DataGrid DataGrid DataGrid DataGrid Class

Definición

Muestra datos de ADO.NET en una cuadrícula desplazable.Displays ADO.NET data in a scrollable grid. El control DataGridView reemplaza y agrega funcionalidad al control DataGrid; sin embargo, el control DataGrid se conserva a efectos de compatibilidad con versiones anteriores y uso futuro, en su caso.The DataGridView control replaces and adds functionality to the DataGrid control; however, the DataGrid control is retained for both backward compatibility and future use, if you choose.

public ref class DataGrid : System::Windows::Forms::Control, System::ComponentModel::ISupportInitialize, System::Windows::Forms::IDataGridEditingService
[System.ComponentModel.ComplexBindingProperties("DataSource", "DataMember")]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
public class DataGrid : System.Windows.Forms.Control, System.ComponentModel.ISupportInitialize, System.Windows.Forms.IDataGridEditingService
type DataGrid = class
    inherit Control
    interface ISupportInitialize
    interface IDataGridEditingService
Public Class DataGrid
Inherits Control
Implements IDataGridEditingService, ISupportInitialize
Herencia
Atributos
Implementaciones

Ejemplos

En el ejemplo de código siguiente se crea un formulario DataSet de Windows DataTable Forms, que DataRelation contiene dos objetos y un que relaciona las dos tablas.The following code example creates a Windows form, a DataSet containing two DataTable objects, and a DataRelation that relates the two tables. Para mostrar los datos, se System.Windows.Forms.DataGrid enlaza DataSet un control a a través del SetDataBinding método.To display the data, a System.Windows.Forms.DataGrid control is then bound to the DataSet through the SetDataBinding method. Un botón del formulario cambia la apariencia de la cuadrícula creando DataGridTableStyle dos objetos y estableciendo el MappingName TableName de cada objeto en uno de los DataTable objetos.A button on the form changes the appearance of the grid by creating two DataGridTableStyle objects and setting the MappingName of each object to a TableName of one of the DataTable objects. El ejemplo también contiene código en el MouseUp evento que utiliza el HitTest método para imprimir la columna, la fila y la parte de la cuadrícula en la que se ha realizado un clic.The example also contains code in the MouseUp event that uses the HitTest method to print the column, row, and part of the grid that has been clicked.

#using <system.dll>
#using <system.data.dll>
#using <system.drawing.dll>
#using <system.windows.forms.dll>
#using <system.xml.dll>

using namespace System;
using namespace System::ComponentModel;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Windows::Forms;

#define null 0
public ref class Form1: public System::Windows::Forms::Form
{
private:
   System::ComponentModel::Container^ components;
   Button^ button1;
   Button^ button2;
   DataGrid^ myDataGrid;
   DataSet^ myDataSet;
   bool TablesAlreadyAdded;

public:
   Form1()
   {
      // Required for Windows Form Designer support.
      InitializeComponent();

      // Call SetUp to bind the controls.
      SetUp();
   }

public:
   ~Form1()
   {
      if ( components != nullptr )
      {
         delete components;
      }
   }

private:
   void InitializeComponent()
   {
      // Create the form and its controls.
      this->components = gcnew System::ComponentModel::Container;
      this->button1 = gcnew System::Windows::Forms::Button;
      this->button2 = gcnew System::Windows::Forms::Button;
      this->myDataGrid = gcnew DataGrid;
      this->Text = "DataGrid Control Sample";
      this->ClientSize = System::Drawing::Size( 450, 330 );
      button1->Location = System::Drawing::Point( 24, 16 );
      button1->Size = System::Drawing::Size( 120, 24 );
      button1->Text = "Change Appearance";
      button1->Click += gcnew System::EventHandler( this, &Form1::button1_Click );
      button2->Location = System::Drawing::Point( 150, 16 );
      button2->Size = System::Drawing::Size( 120, 24 );
      button2->Text = "Get Binding Manager";
      button2->Click += gcnew System::EventHandler( this, &Form1::button2_Click );
      myDataGrid->Location = System::Drawing::Point( 24, 50 );
      myDataGrid->Size = System::Drawing::Size( 300, 200 );
      myDataGrid->CaptionText = "Microsoft DataGrid Control";
      myDataGrid->MouseUp += gcnew MouseEventHandler( this, &Form1::Grid_MouseUp );
      this->Controls->Add( button1 );
      this->Controls->Add( button2 );
      this->Controls->Add( myDataGrid );
   }

   void SetUp()
   {
      // Create a DataSet with two tables and one relation.
      MakeDataSet();

      /* Bind the DataGrid to the DataSet. The dataMember
        specifies that the Customers table should be displayed.*/
      myDataGrid->SetDataBinding( myDataSet, "Customers" );
   }

private:
   void button1_Click( Object^ sender, System::EventArgs^ e )
   {
      if ( TablesAlreadyAdded )
            return;

      AddCustomDataTableStyle();
   }

private:
   void AddCustomDataTableStyle()
   {
      DataGridTableStyle^ ts1 = gcnew DataGridTableStyle;
      ts1->MappingName = "Customers";

      // Set other properties.
      ts1->AlternatingBackColor = Color::LightGray;

      /* Add a GridColumnStyle and set its MappingName 
        to the name of a DataColumn in the DataTable. 
        Set the HeaderText and Width properties. */
      DataGridColumnStyle^ boolCol = gcnew DataGridBoolColumn;
      boolCol->MappingName = "Current";
      boolCol->HeaderText = "IsCurrent Customer";
      boolCol->Width = 150;
      ts1->GridColumnStyles->Add( boolCol );

      // Add a second column style.
      DataGridColumnStyle^ TextCol = gcnew DataGridTextBoxColumn;
      TextCol->MappingName = "custName";
      TextCol->HeaderText = "Customer Name";
      TextCol->Width = 250;
      ts1->GridColumnStyles->Add( TextCol );

      // Create the second table style with columns.
      DataGridTableStyle^ ts2 = gcnew DataGridTableStyle;
      ts2->MappingName = "Orders";

      // Set other properties.
      ts2->AlternatingBackColor = Color::LightBlue;

      // Create new ColumnStyle objects
      DataGridColumnStyle^ cOrderDate = gcnew DataGridTextBoxColumn;
      cOrderDate->MappingName = "OrderDate";
      cOrderDate->HeaderText = "Order Date";
      cOrderDate->Width = 100;
      ts2->GridColumnStyles->Add( cOrderDate );

      /* Use a PropertyDescriptor to create a formatted
        column. First get the PropertyDescriptorCollection
        for the data source and data member. */
      PropertyDescriptorCollection^ pcol = this->BindingContext[myDataSet, "Customers.custToOrders"]->GetItemProperties();

      /* Create a formatted column using a PropertyDescriptor.
        The formatting character "c" specifies a currency format. */
      DataGridColumnStyle^ csOrderAmount = gcnew DataGridTextBoxColumn( pcol[ "OrderAmount" ],"c",true );
      csOrderAmount->MappingName = "OrderAmount";
      csOrderAmount->HeaderText = "Total";
      csOrderAmount->Width = 100;
      ts2->GridColumnStyles->Add( csOrderAmount );

      /* Add the DataGridTableStyle instances to 
        the GridTableStylesCollection. */
      myDataGrid->TableStyles->Add( ts1 );
      myDataGrid->TableStyles->Add( ts2 );

      // Sets the TablesAlreadyAdded to true so this doesn't happen again.
      TablesAlreadyAdded = true;
   }

private:
   void button2_Click( Object^ sender, System::EventArgs^ e )
   {
      BindingManagerBase^ bmGrid;
      bmGrid = BindingContext[myDataSet, "Customers"];
      MessageBox::Show( String::Concat( "Current BindingManager Position: ", bmGrid->Position )->ToString() );
   }

private:
   void Grid_MouseUp( Object^ sender, MouseEventArgs^ e )
   {
      // Create a HitTestInfo object using the HitTest method.
      // Get the DataGrid by casting sender.
      DataGrid^ myGrid = dynamic_cast<DataGrid^>(sender);
      DataGrid::HitTestInfo ^ myHitInfo = myGrid->HitTest( e->X, e->Y );
      Console::WriteLine( myHitInfo );
      Console::WriteLine( myHitInfo->Type );
      Console::WriteLine( myHitInfo->Row );
      Console::WriteLine( myHitInfo->Column );
   }

   // Create a DataSet with two tables and populate it.
   void MakeDataSet()
   {
      // Create a DataSet.
      myDataSet = gcnew DataSet( "myDataSet" );

      // Create two DataTables.
      DataTable^ tCust = gcnew DataTable( "Customers" );
      DataTable^ tOrders = gcnew DataTable( "Orders" );

      // Create two columns, and add them to the first table.
      DataColumn^ cCustID = gcnew DataColumn( "CustID",__int32::typeid );
      DataColumn^ cCustName = gcnew DataColumn( "CustName" );
      DataColumn^ cCurrent = gcnew DataColumn( "Current",bool::typeid );
      tCust->Columns->Add( cCustID );
      tCust->Columns->Add( cCustName );
      tCust->Columns->Add( cCurrent );

      // Create three columns, and add them to the second table.
      DataColumn^ cID = gcnew DataColumn( "CustID",__int32::typeid );
      DataColumn^ cOrderDate = gcnew DataColumn( "orderDate",DateTime::typeid );
      DataColumn^ cOrderAmount = gcnew DataColumn( "OrderAmount",Decimal::typeid );
      tOrders->Columns->Add( cOrderAmount );
      tOrders->Columns->Add( cID );
      tOrders->Columns->Add( cOrderDate );

      // Add the tables to the DataSet.
      myDataSet->Tables->Add( tCust );
      myDataSet->Tables->Add( tOrders );

      // Create a DataRelation, and add it to the DataSet.
      DataRelation^ dr = gcnew DataRelation( "custToOrders",cCustID,cID );
      myDataSet->Relations->Add( dr );

      /* Populate the tables. For each customer and order, 
        create need two DataRow variables. */
      DataRow^ newRow1;
      DataRow^ newRow2;

      // Create three customers in the Customers Table.
      for ( int i = 1; i < 4; i++ )
      {
         newRow1 = tCust->NewRow();
         newRow1[ "custID" ] = i;
         
         // Add the row to the Customers table.
         tCust->Rows->Add( newRow1 );
      }
      tCust->Rows[ 0 ][ "custName" ] = "Customer1";
      tCust->Rows[ 1 ][ "custName" ] = "Customer2";
      tCust->Rows[ 2 ][ "custName" ] = "Customer3";

      // Give the Current column a value.
      tCust->Rows[ 0 ][ "Current" ] = true;
      tCust->Rows[ 1 ][ "Current" ] = true;
      tCust->Rows[ 2 ][ "Current" ] = false;

      // For each customer, create five rows in the Orders table.
      for ( int i = 1; i < 4; i++ )
      {
         for ( int j = 1; j < 6; j++ )
         {
            newRow2 = tOrders->NewRow();
            newRow2[ "CustID" ] = i;
            newRow2[ "orderDate" ] = DateTime(2001,i,j * 2);
            newRow2[ "OrderAmount" ] = i * 10 + j * .1;
            
            // Add the row to the Orders table.
            tOrders->Rows->Add( newRow2 );
         }
      }
   }
};

int main()
{
   Application::Run( gcnew Form1 );
}
using System;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;

public class Form1 : System.Windows.Forms.Form
{
   private System.ComponentModel.Container components;
   private Button button1;
   private Button button2;
   private DataGrid myDataGrid;   
   private DataSet myDataSet;
   private bool TablesAlreadyAdded;
   public Form1()
   {
      // Required for Windows Form Designer support.
      InitializeComponent();
      // Call SetUp to bind the controls.
      SetUp();
   }

   protected override void Dispose( bool disposing ){
      if( disposing ){
         if (components != null){
            components.Dispose();}
      }
      base.Dispose( disposing );
   }
   private void InitializeComponent()
   {
      // Create the form and its controls.
      this.components = new System.ComponentModel.Container();
      this.button1 = new System.Windows.Forms.Button();
      this.button2 = new System.Windows.Forms.Button();
      this.myDataGrid = new DataGrid();
      
      this.Text = "DataGrid Control Sample";
      this.ClientSize = new System.Drawing.Size(450, 330);
      
      button1.Location = new Point(24, 16);
      button1.Size = new System.Drawing.Size(120, 24);
      button1.Text = "Change Appearance";
      button1.Click+=new System.EventHandler(button1_Click);

      button2.Location = new Point(150, 16);
      button2.Size = new System.Drawing.Size(120, 24);
      button2.Text = "Get Binding Manager";
      button2.Click+=new System.EventHandler(button2_Click);

      myDataGrid.Location = new  Point(24, 50);
      myDataGrid.Size = new Size(300, 200);
      myDataGrid.CaptionText = "Microsoft DataGrid Control";
      myDataGrid.MouseUp += new MouseEventHandler(Grid_MouseUp);
      
      this.Controls.Add(button1);
      this.Controls.Add(button2);
      this.Controls.Add(myDataGrid);
   }

   public static void Main()
   {
      Application.Run(new Form1());
   }
   
   private void SetUp()
   {
      // Create a DataSet with two tables and one relation.
      MakeDataSet();
      /* Bind the DataGrid to the DataSet. The dataMember
      specifies that the Customers table should be displayed.*/
      myDataGrid.SetDataBinding(myDataSet, "Customers");
   }

   private void button1_Click(object sender, System.EventArgs e)
   {
      if(TablesAlreadyAdded) return;
      AddCustomDataTableStyle();
   }

   private void AddCustomDataTableStyle()
   {
      DataGridTableStyle ts1 = new DataGridTableStyle();
      ts1.MappingName = "Customers";
      // Set other properties.
      ts1.AlternatingBackColor = Color.LightGray;

      /* Add a GridColumnStyle and set its MappingName 
      to the name of a DataColumn in the DataTable. 
      Set the HeaderText and Width properties. */
      
      DataGridColumnStyle boolCol = new DataGridBoolColumn();
      boolCol.MappingName = "Current";
      boolCol.HeaderText = "IsCurrent Customer";
      boolCol.Width = 150;
      ts1.GridColumnStyles.Add(boolCol);
      
      // Add a second column style.
      DataGridColumnStyle TextCol = new DataGridTextBoxColumn();
      TextCol.MappingName = "custName";
      TextCol.HeaderText = "Customer Name";
      TextCol.Width = 250;
      ts1.GridColumnStyles.Add(TextCol);

      // Create the second table style with columns.
      DataGridTableStyle ts2 = new DataGridTableStyle();
      ts2.MappingName = "Orders";

      // Set other properties.
      ts2.AlternatingBackColor = Color.LightBlue;
      
      // Create new ColumnStyle objects
      DataGridColumnStyle cOrderDate = 
      new DataGridTextBoxColumn();
      cOrderDate.MappingName = "OrderDate";
      cOrderDate.HeaderText = "Order Date";
      cOrderDate.Width = 100;
      ts2.GridColumnStyles.Add(cOrderDate);

      /* Use a PropertyDescriptor to create a formatted
      column. First get the PropertyDescriptorCollection
      for the data source and data member. */
      PropertyDescriptorCollection pcol = this.BindingContext
      [myDataSet, "Customers.custToOrders"].GetItemProperties();
 
      /* Create a formatted column using a PropertyDescriptor.
      The formatting character "c" specifies a currency format. */     
      DataGridColumnStyle csOrderAmount = 
      new DataGridTextBoxColumn(pcol["OrderAmount"], "c", true);
      csOrderAmount.MappingName = "OrderAmount";
      csOrderAmount.HeaderText = "Total";
      csOrderAmount.Width = 100;
      ts2.GridColumnStyles.Add(csOrderAmount);

      /* Add the DataGridTableStyle instances to 
      the GridTableStylesCollection. */
      myDataGrid.TableStyles.Add(ts1);
      myDataGrid.TableStyles.Add(ts2);

     // Sets the TablesAlreadyAdded to true so this doesn't happen again.
     TablesAlreadyAdded=true;
   }

   private void button2_Click(object sender, System.EventArgs e)
   {
      BindingManagerBase bmGrid;
      bmGrid = BindingContext[myDataSet, "Customers"];
      MessageBox.Show("Current BindingManager Position: " + bmGrid.Position);
   }

   private void Grid_MouseUp(object sender, MouseEventArgs e)
   {
      // Create a HitTestInfo object using the HitTest method.

      // Get the DataGrid by casting sender.
      DataGrid myGrid = (DataGrid)sender;
      DataGrid.HitTestInfo myHitInfo = myGrid.HitTest(e.X, e.Y);
      Console.WriteLine(myHitInfo);
      Console.WriteLine(myHitInfo.Type);
      Console.WriteLine(myHitInfo.Row);
      Console.WriteLine(myHitInfo.Column);
   }

   // Create a DataSet with two tables and populate it.
   private void MakeDataSet()
   {
      // Create a DataSet.
      myDataSet = new DataSet("myDataSet");
      
      // Create two DataTables.
      DataTable tCust = new DataTable("Customers");
      DataTable tOrders = new DataTable("Orders");

      // Create two columns, and add them to the first table.
      DataColumn cCustID = new DataColumn("CustID", typeof(int));
      DataColumn cCustName = new DataColumn("CustName");
      DataColumn cCurrent = new DataColumn("Current", typeof(bool));
      tCust.Columns.Add(cCustID);
      tCust.Columns.Add(cCustName);
      tCust.Columns.Add(cCurrent);

      // Create three columns, and add them to the second table.
      DataColumn cID = 
      new DataColumn("CustID", typeof(int));
      DataColumn cOrderDate = 
      new DataColumn("orderDate",typeof(DateTime));
      DataColumn cOrderAmount = 
      new DataColumn("OrderAmount", typeof(decimal));
      tOrders.Columns.Add(cOrderAmount);
      tOrders.Columns.Add(cID);
      tOrders.Columns.Add(cOrderDate);

      // Add the tables to the DataSet.
      myDataSet.Tables.Add(tCust);
      myDataSet.Tables.Add(tOrders);

      // Create a DataRelation, and add it to the DataSet.
      DataRelation dr = new DataRelation
      ("custToOrders", cCustID , cID);
      myDataSet.Relations.Add(dr);
   
      /* Populates the tables. For each customer and order, 
      creates two DataRow variables. */
      DataRow newRow1;
      DataRow newRow2;

      // Create three customers in the Customers Table.
      for(int i = 1; i < 4; i++)
      {
         newRow1 = tCust.NewRow();
         newRow1["custID"] = i;
         // Add the row to the Customers table.
         tCust.Rows.Add(newRow1);
      }
      // Give each customer a distinct name.
      tCust.Rows[0]["custName"] = "Customer1";
      tCust.Rows[1]["custName"] = "Customer2";
      tCust.Rows[2]["custName"] = "Customer3";

      // Give the Current column a value.
      tCust.Rows[0]["Current"] = true;
      tCust.Rows[1]["Current"] = true;
      tCust.Rows[2]["Current"] = false;

      // For each customer, create five rows in the Orders table.
      for(int i = 1; i < 4; i++)
      {
         for(int j = 1; j < 6; j++)
         {
            newRow2 = tOrders.NewRow();
            newRow2["CustID"]= i;
            newRow2["orderDate"]= new DateTime(2001, i, j * 2);
            newRow2["OrderAmount"] = i * 10 + j  * .1;
            // Add the row to the Orders table.
            tOrders.Rows.Add(newRow2);
         }
      }
   }
}
Option Explicit
Option Strict

Imports System
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Windows.Forms

Public Class Form1
   Inherits System.Windows.Forms.Form
   Private components As System.ComponentModel.Container
   Private button1 As Button
   Private button2 As Button
   Private myDataGrid As DataGrid
   Private myDataSet As DataSet
   Private TablesAlreadyAdded As Boolean    
    
   Public Sub New()
      ' Required for Windows Form Designer support.
      InitializeComponent()
      ' Call SetUp to bind the controls.
      SetUp()
   End Sub 
        
  Private Sub InitializeComponent()
      ' Create the form and its controls.
      Me.components = New System.ComponentModel.Container()
      Me.button1 = New System.Windows.Forms.Button()
      Me.button2 = New System.Windows.Forms.Button()
      Me.myDataGrid = New DataGrid()
      
      Me.Text = "DataGrid Control Sample"
      Me.ClientSize = New System.Drawing.Size(450, 330)
        
      button1.Location = New Point(24, 16)
      button1.Size = New System.Drawing.Size(120, 24)
      button1.Text = "Change Appearance"
      AddHandler button1.Click, AddressOf button1_Click
        
      button2.Location = New Point(150, 16)
      button2.Size = New System.Drawing.Size(120, 24)
      button2.Text = "Get Binding Manager"
      AddHandler button2.Click, AddressOf button2_Click
        
      myDataGrid.Location = New Point(24, 50)
      myDataGrid.Size = New Size(300, 200)
      myDataGrid.CaptionText = "Microsoft DataGrid Control"
      AddHandler myDataGrid.MouseUp, AddressOf Grid_MouseUp
        
      Me.Controls.Add(button1)
      Me.Controls.Add(button2)
      Me.Controls.Add(myDataGrid)
   End Sub 
    
   Public Shared Sub Main()
      Application.Run(New Form1())
   End Sub 
        
   Private Sub SetUp()
      ' Create a DataSet with two tables and one relation.
      MakeDataSet()
      ' Bind the DataGrid to the DataSet. The dataMember
      ' specifies that the Customers table should be displayed.
      myDataGrid.SetDataBinding(myDataSet, "Customers")
   End Sub 
        
    Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        If TablesAlreadyAdded = True Then Exit Sub
        AddCustomDataTableStyle()
    End Sub
   
   Private Sub AddCustomDataTableStyle()
      Dim ts1 As New DataGridTableStyle()
      ts1.MappingName = "Customers"
      ' Set other properties.
      ts1.AlternatingBackColor = Color.LightGray
      ' Add a GridColumnStyle and set its MappingName 
      ' to the name of a DataColumn in the DataTable. 
      ' Set the HeaderText and Width properties. 
        
      Dim boolCol As New DataGridBoolColumn()
      boolCol.MappingName = "Current"
      boolCol.HeaderText = "IsCurrent Customer"
      boolCol.Width = 150
      ts1.GridColumnStyles.Add(boolCol)
        
      ' Add a second column style.
      Dim TextCol As New DataGridTextBoxColumn()
      TextCol.MappingName = "custName"
      TextCol.HeaderText = "Customer Name"
      TextCol.Width = 250
      ts1.GridColumnStyles.Add(TextCol)
        
      ' Create the second table style with columns.
      Dim ts2 As New DataGridTableStyle()
      ts2.MappingName = "Orders"
        
      ' Set other properties.
      ts2.AlternatingBackColor = Color.LightBlue
        
      ' Create new ColumnStyle objects
      Dim cOrderDate As New DataGridTextBoxColumn()
      cOrderDate.MappingName = "OrderDate"
      cOrderDate.HeaderText = "Order Date"
      cOrderDate.Width = 100
      ts2.GridColumnStyles.Add(cOrderDate)

      ' Use a PropertyDescriptor to create a formatted
      ' column. First get the PropertyDescriptorCollection
      ' for the data source and data member. 
      Dim pcol As PropertyDescriptorCollection = _
      Me.BindingContext(myDataSet, "Customers.custToOrders"). _
      GetItemProperties()

      ' Create a formatted column using a PropertyDescriptor.
      ' The formatting character "c" specifies a currency format. */     
        
      Dim csOrderAmount As _
      New DataGridTextBoxColumn(pcol("OrderAmount"), "c", True)
      csOrderAmount.MappingName = "OrderAmount"
      csOrderAmount.HeaderText = "Total"
      csOrderAmount.Width = 100
      ts2.GridColumnStyles.Add(csOrderAmount)
        
      ' Add the DataGridTableStyle instances to 
      ' the GridTableStylesCollection. 
      myDataGrid.TableStyles.Add(ts1)
      myDataGrid.TableStyles.Add(ts2)

     ' Sets the TablesAlreadyAdded to true so this doesn't happen again.
      TablesAlreadyAdded = true
   End Sub 
    
    Private Sub button2_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim bmGrid As BindingManagerBase
        bmGrid = BindingContext(myDataSet, "Customers")
        MessageBox.Show(("Current BindingManager Position: " & bmGrid.Position))
    End Sub
        
   Private Sub Grid_MouseUp(sender As Object, e As MouseEventArgs)
      ' Create a HitTestInfo object using the HitTest method.
      ' Get the DataGrid by casting sender.
      Dim myGrid As DataGrid = CType(sender, DataGrid)
      Dim myHitInfo As DataGrid.HitTestInfo = myGrid.HitTest(e.X, e.Y)
      Console.WriteLine(myHitInfo)
      Console.WriteLine(myHitInfo.Type)
      Console.WriteLine(myHitInfo.Row)
      Console.WriteLine(myHitInfo.Column)
   End Sub 
        
   ' Create a DataSet with two tables and populate it.
   Private Sub MakeDataSet()
      ' Create a DataSet.
      myDataSet = New DataSet("myDataSet")
       
      ' Create two DataTables.
      Dim tCust As New DataTable("Customers")
      Dim tOrders As New DataTable("Orders")
      
      ' Create two columns, and add them to the first table.
      Dim cCustID As New DataColumn("CustID", GetType(Integer))
      Dim cCustName As New DataColumn("CustName")
      Dim cCurrent As New DataColumn("Current", GetType(Boolean))
      tCust.Columns.Add(cCustID)
      tCust.Columns.Add(cCustName)
      tCust.Columns.Add(cCurrent)
       
      ' Create three columns, and add them to the second table.
      Dim cID As New DataColumn("CustID", GetType(Integer))
      Dim cOrderDate As New DataColumn("orderDate", GetType(DateTime))
      Dim cOrderAmount As New DataColumn("OrderAmount", GetType(Decimal))
      tOrders.Columns.Add(cOrderAmount)
      tOrders.Columns.Add(cID)
      tOrders.Columns.Add(cOrderDate)
       
      ' Add the tables to the DataSet.
      myDataSet.Tables.Add(tCust)
      myDataSet.Tables.Add(tOrders)
        
      ' Create a DataRelation, and add it to the DataSet.
      Dim dr As New DataRelation("custToOrders", cCustID, cID)
      myDataSet.Relations.Add(dr)
        
      ' Populates the tables. For each customer and order, 
      ' creates two DataRow variables. 
      Dim newRow1 As DataRow
      Dim newRow2 As DataRow
        
      ' Create three customers in the Customers Table.
      Dim i As Integer
      For i = 1 To 3
         newRow1 = tCust.NewRow()
         newRow1("custID") = i
         ' Add the row to the Customers table.
         tCust.Rows.Add(newRow1)
      Next i
      ' Give each customer a distinct name.
      tCust.Rows(0)("custName") = "Customer1"
      tCust.Rows(1)("custName") = "Customer2"
      tCust.Rows(2)("custName") = "Customer3"
        
      ' Give the Current column a value.
      tCust.Rows(0)("Current") = True
      tCust.Rows(1)("Current") = True
      tCust.Rows(2)("Current") = False
        
      ' For each customer, create five rows in the Orders table.
      For i = 1 To 3
         Dim j As Integer
         For j = 1 To 5
            newRow2 = tOrders.NewRow()
            newRow2("CustID") = i
            newRow2("orderDate") = New DateTime(2001, i, j * 2)
            newRow2("OrderAmount") = i * 10 + j * 0.1
            ' Add the row to the Orders table.
            tOrders.Rows.Add(newRow2)
         Next j
      Next i
   End Sub 
End Class 

Comentarios

El System.Windows.Forms.DataGrid muestra vínculos de tipo Web a las tablas secundarias.The System.Windows.Forms.DataGrid displays Web-like links to child tables. Puede hacer clic en un vínculo para navegar a la tabla secundaria.You can click on a link to navigate to the child table. Cuando se muestra una tabla secundaria, aparece un botón atrás en el título en el que se puede hacer clic para volver a la tabla primaria.When a child table is displayed, a back button appears in the caption that can be clicked to navigate back to the parent table. Los datos de las filas principales se muestran debajo del título y por encima de los encabezados de columna.The data from the parent rows is displayed below the caption and above the column headers. Puede ocultar la información de la fila primaria haciendo clic en el botón situado a la derecha del botón atrás.You can hide the parent row information by clicking the button to the right of the back button.

Para mostrar una tabla en el System.Windows.Forms.DataGrid en tiempo de ejecución, use SetDataBinding el método para establecer DataSource las DataMember propiedades y en un origen de datos válido.To display a table in the System.Windows.Forms.DataGrid at run time, use the SetDataBinding method to set the DataSource and DataMember properties to a valid data source. Los siguientes orígenes de datos son válidos:The following data sources are valid:

Para obtener más información sobre DataSet la clase, vea conjuntos de datos , tablas de datos y vistasde datos.For more information about the DataSet class, see DataSets, DataTables, and DataViews.

Puede crear una cuadrícula que permita a los usuarios editar datos pero les impide agregar nuevas filas utilizando DataView como origen de datos y estableciendo la AllowNew propiedad en false.You can create a grid that enables users to edit data but prevents them from adding new rows by using a DataView as the data source and setting the AllowNew property to false.

Los orígenes de datos se administran aún más mediante BindingManagerBase objetos.Data sources are further managed by BindingManagerBase objects. Para cada tabla de un origen de datos, BindingManagerBase puede devolverse desde el del BindingContextformulario.For each table in a data source, a BindingManagerBase can be returned from the form's BindingContext. Por ejemplo, puede determinar el número de filas que contiene un origen de datos devolviendo la propiedad BindingManagerBase del Count objeto asociado.For example, you can determine the number of rows contained by a data source by returning the associated BindingManagerBase object's Count property.

Para validar los datos, use los objetos subyacentes que representan los datos y sus eventos.To validate data, use the underlying objects that represent data and their events. Por ejemplo, si los datos proceden de DataTable un DataSeten, utilice los ColumnChanging eventos RowChanging y.For example, if the data comes from a DataTable in a DataSet, use the ColumnChanging and RowChanging events.

Nota

Dado que el número de columnas se puede personalizar (agregando o eliminando miembros del GridColumnStylesCollection) y las filas se pueden ordenar por columna, no se RowNumber puede garantizar que los valores de las propiedades y DataRow ColumnNumber se correspondan con y DataColumníndices en un DataTable.Because the number of columns can be customized (by adding or deleting members of the GridColumnStylesCollection) and the rows can be sorted by column, the RowNumber and ColumnNumber property values cannot be guaranteed to correspond to DataRow and DataColumn indexes in a DataTable. Por lo tanto, debe evitar el uso de Validating esas propiedades en el evento para validar los datos.Therefore you should avoid using those properties in the Validating event to validate data.

Para determinar qué celda está seleccionada, use la CurrentCell propiedad.To determine which cell is selected, use the CurrentCell property. Cambie el valor de cualquier celda mediante la Item[Int32, Int32] propiedad, que puede tomar los índices de fila y columna de la celda, o un único. DataGridCellChange the value of any cell by using the Item[Int32, Int32] property, which can take either the row and column indexes of the cell, or a single DataGridCell. Supervise el CurrentCellChanged evento para detectar cuándo el usuario selecciona otra celda.Monitor the CurrentCellChanged event to detect when the user selects another cell.

Para determinar en qué parte del control hizo clic el usuario, use el HitTest método en el MouseDown evento.To determine which part of the control the user clicked, use the HitTest method in the MouseDown event. El HitTest método devuelve un DataGrid.HitTestInfo objeto, que contiene la fila y la columna de un área en la que se hizo clic.The HitTest method returns a DataGrid.HitTestInfo object, which contains the row and column of a clicked area.

Para administrar la apariencia del control en tiempo de ejecución, hay disponibles varias propiedades para establecer los atributos color y Caption, incluidos CaptionForeColor, CaptionBackColor, CaptionFont, etc.To manage the appearance of the control at run time, several properties for setting the color and caption attributes are available, including the CaptionForeColor, CaptionBackColor, CaptionFont, and so on.

La apariencia de la cuadrícula (o cuadrículas) mostrada se puede modificar aún más DataGridTableStyle si se crean objetos y se GridTableStylesCollectionagregan a, al que se TableStyles tiene acceso a través de la propiedad.The appearance of the displayed grid (or grids) can be further modified by creating DataGridTableStyle objects and adding them to the GridTableStylesCollection, which is accessed through the TableStyles property. Por ejemplo, DataSource si se establece en un DataSet objeto que contiene DataTable tres objetos, se pueden agregar DataGridTableStyle tres objetos a la colección, uno para cada tabla.For example, if the DataSource is set to a DataSet containing three DataTable objects, you can add three DataGridTableStyle objects to the collection, one for each table. Para sincronizar DataGridTableStyle cada objeto con DataTableun DataGridTableStyle , establezca MappingName TableName el de en el de DataTable.To synchronize each DataGridTableStyle object with a DataTable, set the MappingName of the DataGridTableStyle to the TableName of the DataTable. Para obtener más información sobre cómo enlazar a una matriz de objetos DataGridTableStyle.MappingName , vea la propiedad.For more information about binding to an array of objects, see the DataGridTableStyle.MappingName property.

Para crear una vista personalizada de una tabla, cree una instancia de una DataGridTextBoxColumn clase DataGridBoolColumn o y GridTableStylesCollection agregue el objeto al al que se obtiene acceso TableStyles a través de la propiedad.To create a customized view of a table, create an instance of a DataGridTextBoxColumn or DataGridBoolColumn class and add the object to the GridTableStylesCollection accessed through the TableStyles property. Ambas clases se heredan de DataGridColumnStyle.Both classes inherit from DataGridColumnStyle. Para cada estilo de columna, establezca MappingName en el ColumnName de una columna que desee mostrar en la cuadrícula.For each column style, set the MappingName to the ColumnName of a column that you want to show in the grid. Para ocultar una columna, establezca MappingName en un valor distinto de un válido. ColumnNameTo hide a column, set its MappingName to something other than a valid ColumnName.

Para dar formato al texto de una columna, establezca Format la propiedad DataGridTextBoxColumn de en uno de los valores que se encuentran en los tipos de formato y las cadenas con formato de fecha y hora personalizado.To format the text of a column, set the Format property of the DataGridTextBoxColumn to one of the values found in Formatting Types and Custom Date and Time Format Strings.

Para enlazar DataGrid a una matriz fuertemente tipada de objetos, el tipo de objeto debe contener propiedades públicas.To bind the DataGrid to a strongly typed array of objects, the object type must contain public properties. Para crear un DataGridTableStyle que muestre la matriz, establezca la DataGridTableStyle.MappingName propiedad en typename[] , typename donde se reemplaza por el nombre del tipo de objeto.To create a DataGridTableStyle that displays the array, set the DataGridTableStyle.MappingName property to typename[] where typename is replaced by the name of the object type. Tenga en cuenta también MappingName que la propiedad distingue entre mayúsculas y minúsculas; el nombre del tipo debe coincidir exactamente.Also note that the MappingName property is case-sensitive; the type name must be matched exactly. Vea la MappingName propiedad para obtener un ejemplo.See the MappingName property for an example.

También puede enlazar DataGrid a un ArrayList.You can also bind the DataGrid to an ArrayList. Una característica de ArrayList es que puede contener objetos de varios tipos, DataGrid pero solo se puede enlazar a dicha lista cuando todos los elementos de la lista son del mismo tipo que el primer elemento.A feature of the ArrayList is that it can contain objects of multiple types, but the DataGrid can only bind to such a list when all items in the list are of the same type as the first item. Esto significa que todos los objetos deben ser del mismo tipo, o bien deben heredar de la misma clase que el primer elemento de la lista.This means that all objects must either be of the same type, or they must inherit from the same class as the first item in the list. Por ejemplo, si el primer elemento de una lista es Control, el segundo elemento podría TextBox ser (que hereda de Control).For example, if the first item in a list is a Control, the second item could be a TextBox (which inherits from Control). Si, por otro lado, el primer elemento es TextBox, el segundo objeto no puede Controlser.If, on the other hand, the first item is a TextBox, the second object cannot be a Control. Además, ArrayList debe tener elementos en él cuando esté enlazado.Further, the ArrayList must have items in it when it is bound. Un vacío ArrayList dará como resultado una cuadrícula vacía.An empty ArrayList will result in an empty grid. Además, los objetos de ArrayList deben contener propiedades públicas.In addition, the objects in the ArrayList must contain public properties. Al enlazar a ArrayList, establezca el MappingName valor de DataGridTableStyle en "ArrayList" (el nombre de tipo).When binding to an ArrayList, set the MappingName of the DataGridTableStyle to "ArrayList" (the type name).

Para cada DataGridTableStyleuna de ellas, puede establecer los atributos de color y de título que System.Windows.Forms.DataGrid invalidan la configuración del control.For each DataGridTableStyle, you can set color and caption attributes that override the settings for the System.Windows.Forms.DataGrid control. Sin embargo, si no se establecen esas propiedades, se utilizará de forma predeterminada la configuración del control.However, if those properties are not set, the settings for the control are used by default. Las siguientes propiedades se pueden invalidar mediante DataGridTableStyle propiedades:The following properties can be overridden by DataGridTableStyle properties:

Para personalizar la apariencia de columnas individuales, agregue DataGridColumnStyle objetos GridColumnStylesCollectional objeto, al que se tiene acceso a GridColumnStyles través de la DataGridTableStylepropiedad de cada.To customize the appearance of individual columns, add DataGridColumnStyle objects to the GridColumnStylesCollection, which is accessed through the GridColumnStyles property of each DataGridTableStyle. Para sincronizar DataGridColumnStyle cada con DataColumn un DataTable ColumnName en, establezca DataColumnen la de. MappingNameTo synchronize each DataGridColumnStyle with a DataColumn in the DataTable, set the MappingName to the ColumnName of a DataColumn. Al construir un DataGridColumnStyle, también puede establecer una cadena de formato que especifica cómo la columna muestra los datos.When constructing a DataGridColumnStyle, you can also set a formatting string that specifies how the column displays data. Por ejemplo, puede especificar que la columna use un formato de fecha corta para mostrar las fechas contenidas en la tabla.For example, you can specify that the column use a short-date format to display dates contained in the table.

Precaución

Cree DataGridColumnStyle siempre objetos y agréguelos GridColumnStylesCollection DataGridTableStyle aGridTableStylesCollectionantes de agregar objetos a.Always create DataGridColumnStyle objects and add them to the GridColumnStylesCollection before adding DataGridTableStyle objects to the GridTableStylesCollection. Cuando se agrega un vacío DataGridTableStyle con un valor MappingName válido a la colección, DataGridColumnStyle los objetos se generan automáticamente.When you add an empty DataGridTableStyle with a valid MappingName value to the collection, DataGridColumnStyle objects are automatically generated for you. Por consiguiente, se producirá una excepción si intenta agregar nuevos DataGridColumnStyle objetos con valores duplicados MappingName a. GridColumnStylesCollectionConsequently, an exception will be thrown if you try to add new DataGridColumnStyle objects with duplicate MappingName values to the GridColumnStylesCollection.

Nota

El control DataGridView reemplaza y agrega funcionalidad al control DataGrid; sin embargo, el control DataGrid se conserva a efectos de compatibilidad con versiones anteriores y uso futuro, en su caso.The DataGridView control replaces and adds functionality to the DataGrid control; however, the DataGrid control is retained for both backward compatibility and future use, if you choose. Para obtener más información, consulte Differences Between the Windows Forms DataGridView and DataGrid Controls (Diferencias entre los controles DataGridView y DataGrid de formularios Windows Forms).For more information, see Differences Between the Windows Forms DataGridView and DataGrid Controls.

Constructores

DataGrid() DataGrid() DataGrid() DataGrid()

Inicializa una nueva instancia de la clase DataGrid.Initializes a new instance of the DataGrid class.

Propiedades

AccessibilityObject AccessibilityObject AccessibilityObject AccessibilityObject

Obtiene AccessibleObject asignado al control.Gets the AccessibleObject assigned to the control.

(Inherited from Control)
AccessibleDefaultActionDescription AccessibleDefaultActionDescription AccessibleDefaultActionDescription AccessibleDefaultActionDescription

Obtiene o establece la descripción de la acción predeterminada del control que usan las aplicaciones cliente de accesibilidad.Gets or sets the default action description of the control for use by accessibility client applications.

(Inherited from Control)
AccessibleDescription AccessibleDescription AccessibleDescription AccessibleDescription

Obtiene o establece la descripción del control que las aplicaciones cliente de accesibilidad utilizan.Gets or sets the description of the control used by accessibility client applications.

(Inherited from Control)
AccessibleName AccessibleName AccessibleName AccessibleName

Obtiene o establece el nombre del control que las aplicaciones cliente de accesibilidad utilizan.Gets or sets the name of the control used by accessibility client applications.

(Inherited from Control)
AccessibleRole AccessibleRole AccessibleRole AccessibleRole

Obtiene o establece el rol accesible del control.Gets or sets the accessible role of the control

(Inherited from Control)
AllowDrop AllowDrop AllowDrop AllowDrop

Obtiene o establece un valor que indica si el control puede aceptar los datos que el usuario arrastra al mismo.Gets or sets a value indicating whether the control can accept data that the user drags onto it.

(Inherited from Control)
AllowNavigation AllowNavigation AllowNavigation AllowNavigation

Obtiene o establece un valor que indica si se permite la navegación.Gets or sets a value indicating whether navigation is allowed.

AllowSorting AllowSorting AllowSorting AllowSorting

Obtiene o establece un valor que indica si es posible volver a ordenar la cuadrícula haciendo clic en un encabezado de columna.Gets or sets a value indicating whether the grid can be resorted by clicking on a column header.

AlternatingBackColor AlternatingBackColor AlternatingBackColor AlternatingBackColor

Obtiene o establece el color de fondo de las filas impares de la cuadrícula.Gets or sets the background color of odd-numbered rows of the grid.

Anchor Anchor Anchor Anchor

Obtiene o establece los bordes del contenedor al que está enlazado un control y determina cómo se cambia el tamaño de un control con su elemento primario.Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent.

(Inherited from Control)
AutoScrollOffset AutoScrollOffset AutoScrollOffset AutoScrollOffset

Obtiene o establece a dónde se desplaza este control en ScrollControlIntoView(Control).Gets or sets where this control is scrolled to in ScrollControlIntoView(Control).

(Inherited from Control)
AutoSize AutoSize AutoSize AutoSize

Esta propiedad no es relevante para esta clase.This property is not relevant for this class.

(Inherited from Control)
BackColor BackColor BackColor BackColor

Obtiene o establece el color de fondo de las filas pares de la cuadrícula.Gets or sets the background color of even-numbered rows of the grid.

BackgroundColor BackgroundColor BackgroundColor BackgroundColor

Obtiene o establece el color del área de la cuadrícula que no corresponde a las filas.Gets or sets the color of the non-row area of the grid.

BackgroundImage BackgroundImage BackgroundImage BackgroundImage

Este miembro no es significativo para este control.This member is not meaningful for this control.

BackgroundImageLayout BackgroundImageLayout BackgroundImageLayout BackgroundImageLayout

Este miembro no es significativo para este control.This member is not meaningful for this control.

BindingContext BindingContext BindingContext BindingContext

Obtiene o establece la plantilla BindingContext para el control.Gets or sets the BindingContext for the control.

(Inherited from Control)
BorderStyle BorderStyle BorderStyle BorderStyle

Obtiene o establece el estilo de borde de la cuadrícula.Gets or sets the grid's border style.

Bottom Bottom Bottom Bottom

Obtiene la distancia, en píxeles, que existe entre el borde inferior del control y el borde superior del área cliente de su contenedor.Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area.

(Inherited from Control)
Bounds Bounds Bounds Bounds

Obtiene o establece el tamaño y la ubicación del control incluyendo sus elementos no cliente, en píxeles, con respecto al control primario.Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control.

(Inherited from Control)
CanEnableIme CanEnableIme CanEnableIme CanEnableIme

Obtiene un valor que indica si la propiedad ImeMode puede establecerse en un valor activo para habilitar la compatibilidad con el IME.Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support.

(Inherited from Control)
CanFocus CanFocus CanFocus CanFocus

Obtiene un valor que indica si el control puede recibir el foco.Gets a value indicating whether the control can receive focus.

(Inherited from Control)
CanRaiseEvents CanRaiseEvents CanRaiseEvents CanRaiseEvents

Determina si se pueden producir eventos en el control.Determines if events can be raised on the control.

(Inherited from Control)
CanSelect CanSelect CanSelect CanSelect

Obtiene un valor que indica si el control se puede seleccionar.Gets a value indicating whether the control can be selected.

(Inherited from Control)
CaptionBackColor CaptionBackColor CaptionBackColor CaptionBackColor

Obtiene o establece el color de fondo del área de título.Gets or sets the background color of the caption area.

CaptionFont CaptionFont CaptionFont CaptionFont

Obtiene o establece la fuente del título de la cuadrícula.Gets or sets the font of the grid's caption.

CaptionForeColor CaptionForeColor CaptionForeColor CaptionForeColor

Obtiene o establece el color de primer plano del área de título.Gets or sets the foreground color of the caption area.

CaptionText CaptionText CaptionText CaptionText

Obtiene o establece el texto correspondiente al título de ventana de la cuadrícula.Gets or sets the text of the grid's window caption.

CaptionVisible CaptionVisible CaptionVisible CaptionVisible

Obtiene o establece un valor que indica si se puede ver el título de la cuadrícula.Gets or sets a value that indicates whether the grid's caption is visible.

Capture Capture Capture Capture

Obtiene o establece un valor que indica si el control ha capturado el mouse.Gets or sets a value indicating whether the control has captured the mouse.

(Inherited from Control)
CausesValidation CausesValidation CausesValidation CausesValidation

Obtiene o establece un valor que indica si el control hace que se realice una validación de todos los controles que requieren validación cuando reciben el foco.Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.

(Inherited from Control)
ClientRectangle ClientRectangle ClientRectangle ClientRectangle

Obtiene el rectángulo que representa el área cliente del control.Gets the rectangle that represents the client area of the control.

(Inherited from Control)
ClientSize ClientSize ClientSize ClientSize

Obtiene o establece el alto y el ancho del área cliente del control.Gets or sets the height and width of the client area of the control.

(Inherited from Control)
ColumnHeadersVisible ColumnHeadersVisible ColumnHeadersVisible ColumnHeadersVisible

Obtiene o establece un valor que indica si los encabezados de columna de una tabla son visibles.Gets or sets a value indicating whether the column headers of a table are visible.

CompanyName CompanyName CompanyName CompanyName

Obtiene el nombre de la compañía o del creador de la aplicación que contiene el control.Gets the name of the company or creator of the application containing the control.

(Inherited from Control)
Container Container Container Container

Obtiene IContainer que contiene Component.Gets the IContainer that contains the Component.

(Inherited from Component)
ContainsFocus ContainsFocus ContainsFocus ContainsFocus

Obtiene un valor que indica si el control, o uno de sus controles secundarios, tiene el foco de entrada en la actualidad.Gets a value indicating whether the control, or one of its child controls, currently has the input focus.

(Inherited from Control)
ContextMenu ContextMenu ContextMenu ContextMenu

Obtiene o establece el menú contextual asociado al control.Gets or sets the shortcut menu associated with the control.

(Inherited from Control)
ContextMenuStrip ContextMenuStrip ContextMenuStrip ContextMenuStrip

Obtiene o establece el ContextMenuStrip asociado a este control.Gets or sets the ContextMenuStrip associated with this control.

(Inherited from Control)
Controls Controls Controls Controls

Obtiene la colección de controles que contiene el control.Gets the collection of controls contained within the control.

(Inherited from Control)
Created Created Created Created

Obtiene un valor que indica si se ha creado el control.Gets a value indicating whether the control has been created.

(Inherited from Control)
CreateParams CreateParams CreateParams CreateParams

Obtiene los parámetros de creación necesarios cuando se crea el identificador del control.Gets the required creation parameters when the control handle is created.

(Inherited from Control)
CurrentCell CurrentCell CurrentCell CurrentCell

Obtiene o establece la celda que tiene el foco.Gets or sets which cell has the focus. No está disponible en tiempo de diseño.Not available at design time.

CurrentRowIndex CurrentRowIndex CurrentRowIndex CurrentRowIndex

Obtiene o establece el indice de la fila que tiene el foco.Gets or sets index of the row that currently has focus.

Cursor Cursor Cursor Cursor

Este miembro no es significativo para este control.This member is not meaningful for this control.

DataBindings DataBindings DataBindings DataBindings

Obtiene los enlaces de datos del control.Gets the data bindings for the control.

(Inherited from Control)
DataMember DataMember DataMember DataMember

Obtiene o establece la lista específica en una propiedad DataSource para la cual el control DataGrid muestra una cuadrícula.Gets or sets the specific list in a DataSource for which the DataGrid control displays a grid.

DataSource DataSource DataSource DataSource

Obtiene o establece el origen de datos para el que muestra datos la cuadrícula.Gets or sets the data source that the grid is displaying data for.

DefaultCursor DefaultCursor DefaultCursor DefaultCursor

Obtiene o establece el cursor predeterminado para el control.Gets or sets the default cursor for the control.

(Inherited from Control)
DefaultImeMode DefaultImeMode DefaultImeMode DefaultImeMode

Obtiene el modo de Editor de métodos de entrada (IME) predeterminado admitido por el control.Gets the default Input Method Editor (IME) mode supported by the control.

(Inherited from Control)
DefaultMargin DefaultMargin DefaultMargin DefaultMargin

Obtiene el espacio, en píxeles, que se especifica de manera predeterminada entre los controles.Gets the space, in pixels, that is specified by default between controls.

(Inherited from Control)
DefaultMaximumSize DefaultMaximumSize DefaultMaximumSize DefaultMaximumSize

Obtiene la longitud y el alto, en píxeles, que se especifica como el tamaño máximo predeterminado de un control.Gets the length and height, in pixels, that is specified as the default maximum size of a control.

(Inherited from Control)
DefaultMinimumSize DefaultMinimumSize DefaultMinimumSize DefaultMinimumSize

Obtiene la longitud y el alto, en píxeles, que se especifica como el tamaño mínimo predeterminado de un control.Gets the length and height, in pixels, that is specified as the default minimum size of a control.

(Inherited from Control)
DefaultPadding DefaultPadding DefaultPadding DefaultPadding

Obtiene el espaciado interno, en píxeles, del contenido de un control.Gets the internal spacing, in pixels, of the contents of a control.

(Inherited from Control)
DefaultSize DefaultSize DefaultSize DefaultSize

Obtiene el tamaño predeterminado del control.Gets the default size of the control.

DesignMode DesignMode DesignMode DesignMode

Obtiene un valor que indica si Component está actualmente en modo de diseño.Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component)
DeviceDpi DeviceDpi DeviceDpi DeviceDpi

Obtiene el valor de PPP de la pantalla donde se muestra actualmente el control.Gets the DPI value for the display device where the control is currently being displayed.

(Inherited from Control)
DisplayRectangle DisplayRectangle DisplayRectangle DisplayRectangle

Obtiene el rectángulo que representa el área de presentación del control.Gets the rectangle that represents the display area of the control.

(Inherited from Control)
Disposing Disposing Disposing Disposing

Obtiene un valor que indica si la clase base Control está en el proceso de eliminación.Gets a value indicating whether the base Control class is in the process of disposing.

(Inherited from Control)
Dock Dock Dock Dock

Obtiene o establece que los bordes del control se acoplarán a su control primario y determina cómo se cambia el tamaño de un control con su elemento primario.Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent.

(Inherited from Control)
DoubleBuffered DoubleBuffered DoubleBuffered DoubleBuffered

Obtiene o establece un valor que indica si este control debe volver a dibujar su superficie mediante un búfer secundario para reducir o evitar el parpadeo.Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker.

(Inherited from Control)
Enabled Enabled Enabled Enabled

Obtiene o establece un valor que indica si el control puede responder a la interacción del usuario.Gets or sets a value indicating whether the control can respond to user interaction.

(Inherited from Control)
Events Events Events Events

Obtiene la lista de controladores de eventos asociados a Component.Gets the list of event handlers that are attached to this Component.

(Inherited from Component)
FirstVisibleColumn FirstVisibleColumn FirstVisibleColumn FirstVisibleColumn

Obtiene el índice de la primera columna visible de una cuadrícula.Gets the index of the first visible column in a grid.

FlatMode FlatMode FlatMode FlatMode

Obtiene o establece un valor que indica si la cuadrícula se muestra en un modo sin relieve.Gets or sets a value indicating whether the grid displays in flat mode.

Focused Focused Focused Focused

Obtiene un valor que indica si el control tiene el foco de entrada.Gets a value indicating whether the control has input focus.

(Inherited from Control)
Font Font Font Font

Obtiene o establece la fuente del texto que muestra el control.Gets or sets the font of the text displayed by the control.

(Inherited from Control)
FontHeight FontHeight FontHeight FontHeight

Obtiene o establece el alto de la fuente del control.Gets or sets the height of the font of the control.

(Inherited from Control)
ForeColor ForeColor ForeColor ForeColor

Obtiene o establece la propiedad del color de primer plano (normalmente el color del texto) del control DataGrid.Gets or sets the foreground color (typically the color of the text) property of the DataGrid control.

GridLineColor GridLineColor GridLineColor GridLineColor

Obtiene o establece el color de las líneas de la cuadrícula.Gets or sets the color of the grid lines.

GridLineStyle GridLineStyle GridLineStyle GridLineStyle

Obtiene o establece el estilo de línea de la cuadrícula.Gets or sets the line style of the grid.

Handle Handle Handle Handle

Obtiene el identificador de ventana al que está enlazado el control.Gets the window handle that the control is bound to.

(Inherited from Control)
HasChildren HasChildren HasChildren HasChildren

Obtiene un valor que indica si el control contiene uno o más controles secundarios.Gets a value indicating whether the control contains one or more child controls.

(Inherited from Control)
HeaderBackColor HeaderBackColor HeaderBackColor HeaderBackColor

Obtiene o establece el color de fondo de todos los encabezados de fila y columna.Gets or sets the background color of all row and column headers.

HeaderFont HeaderFont HeaderFont HeaderFont

Obtiene o establece la fuente utilizada para los encabezados de columna.Gets or sets the font used for column headers.

HeaderForeColor HeaderForeColor HeaderForeColor HeaderForeColor

Obtiene o establece el color de primer plano de los encabezados.Gets or sets the foreground color of headers.

Height Height Height Height

Obtiene o establece el alto del control.Gets or sets the height of the control.

(Inherited from Control)
HorizScrollBar HorizScrollBar HorizScrollBar HorizScrollBar

Obtiene la barra de desplazamiento horizontal de la cuadrícula.Gets the horizontal scroll bar for the grid.

ImeMode ImeMode ImeMode ImeMode

Obtiene o establece el modo de Editor de métodos de entrada (IME) del control.Gets or sets the Input Method Editor (IME) mode of the control.

(Inherited from Control)
ImeModeBase ImeModeBase ImeModeBase ImeModeBase

Obtiene o establece el modo IME de un control.Gets or sets the IME mode of a control.

(Inherited from Control)
InvokeRequired InvokeRequired InvokeRequired InvokeRequired

Obtiene un valor que indica si el llamador debe llamar a un método de invocación cuando realiza llamadas a métodos del control porque el llamador se encuentra en un subproceso distinto al del control donde se creó.Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.

(Inherited from Control)
IsAccessible IsAccessible IsAccessible IsAccessible

Obtiene o establece un valor que indica si el control es visible para las aplicaciones de accesibilidad.Gets or sets a value indicating whether the control is visible to accessibility applications.

(Inherited from Control)
IsDisposed IsDisposed IsDisposed IsDisposed

Obtiene un valor que indica si el control se ha eliminado.Gets a value indicating whether the control has been disposed of.

(Inherited from Control)
IsHandleCreated IsHandleCreated IsHandleCreated IsHandleCreated

Obtiene un valor que indica si el control tiene un identificador asociado.Gets a value indicating whether the control has a handle associated with it.

(Inherited from Control)
IsMirrored IsMirrored IsMirrored IsMirrored

Obtiene un valor que indica si el control está reflejado.Gets a value indicating whether the control is mirrored.

(Inherited from Control)
Item[DataGridCell] Item[DataGridCell] Item[DataGridCell] Item[DataGridCell]

Obtiene o establece el valor del objeto DataGridCell especificado.Gets or sets the value of a specified DataGridCell.

Item[Int32, Int32] Item[Int32, Int32] Item[Int32, Int32] Item[Int32, Int32]

Obtiene o establece el valor de la celda ubicada en la fila y la columna especificadas.Gets or sets the value of the cell at the specified the row and column.

LayoutEngine LayoutEngine LayoutEngine LayoutEngine

Obtiene una instancia almacenada en memoria caché del motor de diseño del control.Gets a cached instance of the control's layout engine.

(Inherited from Control)
Left Left Left Left

Obtiene o establece la distancia, en píxeles, que existe entre el borde izquierdo del control y el borde izquierdo del área cliente de su contenedor.Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area.

(Inherited from Control)
LinkColor LinkColor LinkColor LinkColor

Obtiene o establece el color del texto en el que se puede hacer clic para navegar a una tabla secundaria.Gets or sets the color of the text that you can click to navigate to a child table.

LinkHoverColor LinkHoverColor LinkHoverColor LinkHoverColor

Este miembro no es significativo para este control.This member is not meaningful for this control.

ListManager ListManager ListManager ListManager

Obtiene CurrencyManager para este control DataGrid.Gets the CurrencyManager for this DataGrid control.

Location Location Location Location

Obtiene o establece las coordenadas de la esquina superior izquierda del control en relación con la esquina superior izquierda de su contenedor.Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container.

(Inherited from Control)
Margin Margin Margin Margin

Obtiene o establece el espacio entre controles.Gets or sets the space between controls.

(Inherited from Control)
MaximumSize MaximumSize MaximumSize MaximumSize

Obtiene o establece el tamaño que es el límite superior que GetPreferredSize(Size) puede especificar.Gets or sets the size that is the upper limit that GetPreferredSize(Size) can specify.

(Inherited from Control)
MinimumSize MinimumSize MinimumSize MinimumSize

Obtiene o establece el tamaño que es el límite inferior que GetPreferredSize(Size) puede especificar.Gets or sets the size that is the lower limit that GetPreferredSize(Size) can specify.

(Inherited from Control)
Name Name Name Name

Obtiene o establece el nombre del control.Gets or sets the name of the control.

(Inherited from Control)
Padding Padding Padding Padding

Obtiene o establece el relleno dentro del control.Gets or sets padding within the control.

(Inherited from Control)
Parent Parent Parent Parent

Obtiene o establece el contenedor primario del control.Gets or sets the parent container of the control.

(Inherited from Control)
ParentRowsBackColor ParentRowsBackColor ParentRowsBackColor ParentRowsBackColor

Obtiene o establece el color de fondo de las filas primarias.Gets or sets the background color of parent rows.

ParentRowsForeColor ParentRowsForeColor ParentRowsForeColor ParentRowsForeColor

Obtiene o establece el color de primer plano de las filas primarias.Gets or sets the foreground color of parent rows.

ParentRowsLabelStyle ParentRowsLabelStyle ParentRowsLabelStyle ParentRowsLabelStyle

Obtiene o establece el modo en que se muestran las etiquetas de las filas primarias.Gets or sets the way parent row labels are displayed.

ParentRowsVisible ParentRowsVisible ParentRowsVisible ParentRowsVisible

Obtiene o establece un valor que indica si se ven las filas primarias de una tabla.Gets or sets a value indicating whether the parent rows of a table are visible.

PreferredColumnWidth PreferredColumnWidth PreferredColumnWidth PreferredColumnWidth

Obtiene o establece el ancho predeterminado en píxeles de las columnas de la cuadrícula.Gets or sets the default width of the grid columns in pixels.

PreferredRowHeight PreferredRowHeight PreferredRowHeight PreferredRowHeight

Obtiene o establece el alto de fila preferido para el control DataGrid.Gets or sets the preferred row height for the DataGrid control.

PreferredSize PreferredSize PreferredSize PreferredSize

Obtiene el tamaño de un área rectangular en la que cabe el control.Gets the size of a rectangular area into which the control can fit.

(Inherited from Control)
ProductName ProductName ProductName ProductName

Obtiene el nombre de producto del ensamblado que contiene el control.Gets the product name of the assembly containing the control.

(Inherited from Control)
ProductVersion ProductVersion ProductVersion ProductVersion

Obtiene la versión del ensamblado que contiene el control.Gets the version of the assembly containing the control.

(Inherited from Control)
ReadOnly ReadOnly ReadOnly ReadOnly

Obtiene o establece un valor que indica si la cuadrícula se encuentra en modo de sólo lectura.Gets or sets a value indicating whether the grid is in read-only mode.

RecreatingHandle RecreatingHandle RecreatingHandle RecreatingHandle

Obtiene un valor que indica si el control está volviendo a crear su identificador en la actualidad.Gets a value indicating whether the control is currently re-creating its handle.

(Inherited from Control)
Region Region Region Region

Obtiene o establece la región de ventana asociada al control.Gets or sets the window region associated with the control.

(Inherited from Control)
RenderRightToLeft RenderRightToLeft RenderRightToLeft RenderRightToLeft

Esta propiedad está obsoleta.This property is now obsolete.

(Inherited from Control)
ResizeRedraw ResizeRedraw ResizeRedraw ResizeRedraw

Obtiene o establece un valor que indica si el control vuelve a dibujarse automáticamente cuando cambia de tamaño.Gets or sets a value indicating whether the control redraws itself when resized.

(Inherited from Control)
Right Right Right Right

Obtiene la distancia, en píxeles, que existe entre el borde derecho del control y el borde izquierdo del área cliente de su contenedor.Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area.

(Inherited from Control)
RightToLeft RightToLeft RightToLeft RightToLeft

Obtiene o establece un valor que indica si los elementos del control se alinean para admitir configuraciones regionales que utilizan fuentes de derecha a izquierda.Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.

(Inherited from Control)
RowHeadersVisible RowHeadersVisible RowHeadersVisible RowHeadersVisible

Obtiene o establece un valor que indica si se ven los encabezados de fila.Gets or sets a value that specifies whether row headers are visible.

RowHeaderWidth RowHeaderWidth RowHeaderWidth RowHeaderWidth

Obtiene o establece el ancho de los encabezados de fila.Gets or sets the width of row headers.

ScaleChildren ScaleChildren ScaleChildren ScaleChildren

Obtiene un valor que determina el escalado de los controles secundarios.Gets a value that determines the scaling of child controls.

(Inherited from Control)
SelectionBackColor SelectionBackColor SelectionBackColor SelectionBackColor

Obtiene o establece el color de fondo de las filas seleccionadas.Gets or sets the background color of selected rows.

SelectionForeColor SelectionForeColor SelectionForeColor SelectionForeColor

Obtiene o establece el color de primer plano de las filas seleccionadas.Gets or set the foreground color of selected rows.

ShowFocusCues ShowFocusCues ShowFocusCues ShowFocusCues

Obtiene un valor que indica si el control debe mostrar rectángulos de foco.Gets a value indicating whether the control should display focus rectangles.

(Inherited from Control)
ShowKeyboardCues ShowKeyboardCues ShowKeyboardCues ShowKeyboardCues

Obtiene un valor que indica si la interfaz de usuario está en el estado adecuado para mostrar u ocultar los aceleradores de teclado.Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators.

(Inherited from Control)
Site Site Site Site

Obtiene o establece el sitio del control.Gets or sets the site of the control.

Size Size Size Size

Obtiene o establece el alto y el ancho del control.Gets or sets the height and width of the control.

(Inherited from Control)
TabIndex TabIndex TabIndex TabIndex

Obtiene o establece el orden de tabulación del control en su contenedor.Gets or sets the tab order of the control within its container.

(Inherited from Control)
TableStyles TableStyles TableStyles TableStyles

Obtiene la colección de objetos DataGridTableStyle de la cuadrícula.Gets the collection of DataGridTableStyle objects for the grid.

TabStop TabStop TabStop TabStop

Obtiene o establece un valor que indica si el usuario puede dar el foco a este control mediante la tecla TAB.Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

(Inherited from Control)
Tag Tag Tag Tag

Obtiene o establece el objeto que contiene datos sobre el control.Gets or sets the object that contains data about the control.

(Inherited from Control)
Text Text Text Text

Este miembro no es significativo para este control.This member is not meaningful for this control.

Top Top Top Top

Obtiene o establece la distancia, en píxeles, que existe entre el borde superior del control y el borde superior del área cliente de su contenedor.Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area.

(Inherited from Control)
TopLevelControl TopLevelControl TopLevelControl TopLevelControl

Obtiene el control primario que no es secundario de ningún otro control de formularios Windows Forms.Gets the parent control that is not parented by another Windows Forms control. Normalmente, se trata del Form más externo en el que está contenido el control.Typically, this is the outermost Form that the control is contained in.

(Inherited from Control)
UseWaitCursor UseWaitCursor UseWaitCursor UseWaitCursor

Obtiene o establece un valor que indica si se utiliza el cursor de espera para el control actual y todos los controles secundarios.Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls.

(Inherited from Control)
VertScrollBar VertScrollBar VertScrollBar VertScrollBar

Obtiene la barra de desplazamiento vertical del control.Gets the vertical scroll bar of the control.

Visible Visible Visible Visible

Obtiene o establece un valor que indica si se muestran el control y todos sus controles secundarios.Gets or sets a value indicating whether the control and all its child controls are displayed.

(Inherited from Control)
VisibleColumnCount VisibleColumnCount VisibleColumnCount VisibleColumnCount

Obtiene el número de columnas visibles.Gets the number of visible columns.

VisibleRowCount VisibleRowCount VisibleRowCount VisibleRowCount

Obtiene el número de filas visibles.Gets the number of rows visible.

Width Width Width Width

Obtiene o establece el ancho del control.Gets or sets the width of the control.

(Inherited from Control)
WindowTarget WindowTarget WindowTarget WindowTarget

Esta propiedad no es relevante para esta clase.This property is not relevant for this class.

(Inherited from Control)

Métodos

AccessibilityNotifyClients(AccessibleEvents, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32)

Notifica a las aplicaciones cliente de accesibilidad los objetos AccessibleEvents especificados del control secundario especificado.Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control.

(Inherited from Control)
AccessibilityNotifyClients(AccessibleEvents, Int32, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32, Int32)

Notifica a las aplicaciones cliente de accesibilidad los objetos AccessibleEvents especificados del control secundario especificado.Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control .

(Inherited from Control)
BeginEdit(DataGridColumnStyle, Int32) BeginEdit(DataGridColumnStyle, Int32) BeginEdit(DataGridColumnStyle, Int32) BeginEdit(DataGridColumnStyle, Int32)

Intenta asignarle a la cuadrícula un estado que permita su edición.Attempts to put the grid into a state where editing is allowed.

BeginInit() BeginInit() BeginInit() BeginInit()

Activa la inicialización de un objeto DataGrid que se emplea en un formulario o que utiliza otro componente.Begins the initialization of a DataGrid that is used on a form or used by another component. La inicialización se produce en tiempo de ejecución.The initialization occurs at run time.

BeginInvoke(Delegate) BeginInvoke(Delegate) BeginInvoke(Delegate) BeginInvoke(Delegate)

Ejecuta el delegado especificado de forma asincrónica en el subproceso donde se creó el identificador subyacente del control.Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on.

(Inherited from Control)
BeginInvoke(Delegate, Object[]) BeginInvoke(Delegate, Object[]) BeginInvoke(Delegate, Object[]) BeginInvoke(Delegate, Object[])

Ejecuta el delegado especificado de forma asincrónica con los argumentos especificados en el subproceso donde se creó el identificador subyacente del control.Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on.

(Inherited from Control)
BringToFront() BringToFront() BringToFront() BringToFront()

Coloca el control al principio del orden Z.Brings the control to the front of the z-order.

(Inherited from Control)
CancelEditing() CancelEditing() CancelEditing() CancelEditing()

Cancela la actual operación de edición y deshace todos los cambios.Cancels the current edit operation and rolls back all changes.

Collapse(Int32) Collapse(Int32) Collapse(Int32) Collapse(Int32)

Contrae las relaciones secundarias, si existe alguna, para todas las filas o para una fila especificada.Collapses child relations, if any exist for all rows, or for a specified row.

ColumnStartedEditing(Control) ColumnStartedEditing(Control) ColumnStartedEditing(Control) ColumnStartedEditing(Control)

Informa al control DataGrid cuando el usuario empieza a editar una columna con el control especificado.Informs the DataGrid control when the user begins to edit a column using the specified control.

ColumnStartedEditing(Rectangle) ColumnStartedEditing(Rectangle) ColumnStartedEditing(Rectangle) ColumnStartedEditing(Rectangle)

Informa al control DataGrid cuando el usuario empieza a editar la columna en la ubicación especificada.Informs the DataGrid control when the user begins to edit the column at the specified location.

Contains(Control) Contains(Control) Contains(Control) Contains(Control)

Obtiene un valor que indica si el control especificado es un control secundario del control.Retrieves a value indicating whether the specified control is a child of the control.

(Inherited from Control)
CreateAccessibilityInstance() CreateAccessibilityInstance() CreateAccessibilityInstance() CreateAccessibilityInstance()

Construye una nueva instancia del objeto de accesibilidad de este control.Constructs a new instance of the accessibility object for this control.

CreateControl() CreateControl() CreateControl() CreateControl()

Fuerza la creación del control visible, incluidos el identificador y los controles secundarios visibles.Forces the creation of the visible control, including the creation of the handle and any visible child controls.

(Inherited from Control)
CreateControlsInstance() CreateControlsInstance() CreateControlsInstance() CreateControlsInstance()

Crea una nueva instancia de la colección de controles para el control.Creates a new instance of the control collection for the control.

(Inherited from Control)
CreateGraphics() CreateGraphics() CreateGraphics() CreateGraphics()

Crea el Graphics para el control.Creates the Graphics for the control.

(Inherited from Control)
CreateGridColumn(PropertyDescriptor) CreateGridColumn(PropertyDescriptor) CreateGridColumn(PropertyDescriptor) CreateGridColumn(PropertyDescriptor)

Crea un nuevo DataGridColumnStyle con el PropertyDescriptor especificado.Creates a new DataGridColumnStyle with the specified PropertyDescriptor.

CreateGridColumn(PropertyDescriptor, Boolean) CreateGridColumn(PropertyDescriptor, Boolean) CreateGridColumn(PropertyDescriptor, Boolean) CreateGridColumn(PropertyDescriptor, Boolean)

Crea un DataGridColumnStyle mediante el PropertyDescriptor especificado.Creates a DataGridColumnStyle using the specified PropertyDescriptor.

CreateHandle() CreateHandle() CreateHandle() CreateHandle()

Crea un identificador para el control.Creates a handle for the control.

(Inherited from Control)
CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

Crea un objeto que contiene toda la información relevante necesaria para generar un proxy utilizado para comunicarse con un objeto remoto.Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
DefWndProc(Message) DefWndProc(Message) DefWndProc(Message) DefWndProc(Message)

Envía el mensaje especificado al procedimiento de ventana predeterminado.Sends the specified message to the default window procedure.

(Inherited from Control)
DestroyHandle() DestroyHandle() DestroyHandle() DestroyHandle()

Destruye el identificador asociado a este control.Destroys the handle associated with the control.

(Inherited from Control)
Dispose() Dispose() Dispose() Dispose()

Libera todos los recursos que usa Component.Releases all resources used by the Component.

(Inherited from Component)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Se deshace de los recursos (distintos de la memoria) que usa DataGrid.Disposes of the resources (other than memory) used by the DataGrid.

DoDragDrop(Object, DragDropEffects) DoDragDrop(Object, DragDropEffects) DoDragDrop(Object, DragDropEffects) DoDragDrop(Object, DragDropEffects)

Inicia una operación de arrastrar y colocar.Begins a drag-and-drop operation.

(Inherited from Control)
DrawToBitmap(Bitmap, Rectangle) DrawToBitmap(Bitmap, Rectangle) DrawToBitmap(Bitmap, Rectangle) DrawToBitmap(Bitmap, Rectangle)

Permite la representación del mapa de bits especificado.Supports rendering to the specified bitmap.

(Inherited from Control)
EndEdit(DataGridColumnStyle, Int32, Boolean) EndEdit(DataGridColumnStyle, Int32, Boolean) EndEdit(DataGridColumnStyle, Int32, Boolean) EndEdit(DataGridColumnStyle, Int32, Boolean)

Solicita el final de una operación de edición que tiene lugar en el control DataGrid.Requests an end to an edit operation taking place on the DataGrid control.

EndInit() EndInit() EndInit() EndInit()

Finaliza la inicialización de un objeto DataGrid que se emplea en un formulario o que utiliza otro componente.Ends the initialization of a DataGrid that is used on a form or used by another component. La inicialización se produce en tiempo de ejecución.The initialization occurs at run time.

EndInvoke(IAsyncResult) EndInvoke(IAsyncResult) EndInvoke(IAsyncResult) EndInvoke(IAsyncResult)

Recupera el valor devuelto por la operación asincrónica representada por la interfaz IAsyncResult que se pasa.Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.

(Inherited from Control)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

(Inherited from Object)
Expand(Int32) Expand(Int32) Expand(Int32) Expand(Int32)

Muestra las relaciones secundarias, si existe alguna, para todas las filas o para una fila específica.Displays child relations, if any exist, for all rows or a specific row.

FindForm() FindForm() FindForm() FindForm()

Recupera el formulario en el que se encuentra el control.Retrieves the form that the control is on.

(Inherited from Control)
Focus() Focus() Focus() Focus()

Establece el foco de entrada en el control.Sets input focus to the control.

(Inherited from Control)
GetAccessibilityObjectById(Int32) GetAccessibilityObjectById(Int32) GetAccessibilityObjectById(Int32) GetAccessibilityObjectById(Int32)

Recupera el AccessibleObject especificado.Retrieves the specified AccessibleObject.

(Inherited from Control)
GetAutoSizeMode() GetAutoSizeMode() GetAutoSizeMode() GetAutoSizeMode()

Recupera un valor que indica cómo se comportará un control cuando su propiedad AutoSize esté habilitada.Retrieves a value indicating how a control will behave when its AutoSize property is enabled.

(Inherited from Control)
GetCellBounds(DataGridCell) GetCellBounds(DataGridCell) GetCellBounds(DataGridCell) GetCellBounds(DataGridCell)

Obtiene el Rectangle de la celda especificada por DataGridCell.Gets the Rectangle of the cell specified by DataGridCell.

GetCellBounds(Int32, Int32) GetCellBounds(Int32, Int32) GetCellBounds(Int32, Int32) GetCellBounds(Int32, Int32)

Obtiene el objeto Rectangle de la celda especificada por el número de fila y columna.Gets the Rectangle of the cell specified by row and column number.

GetChildAtPoint(Point) GetChildAtPoint(Point) GetChildAtPoint(Point) GetChildAtPoint(Point)

Recupera el control secundario ubicado en las coordenadas especificadas.Retrieves the child control that is located at the specified coordinates.

(Inherited from Control)
GetChildAtPoint(Point, GetChildAtPointSkip) GetChildAtPoint(Point, GetChildAtPointSkip) GetChildAtPoint(Point, GetChildAtPointSkip) GetChildAtPoint(Point, GetChildAtPointSkip)

Recupera el control secundario que se encuentra en las coordenadas especificadas, especificando si se omitirán determinados tipos de controles secundarios.Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.

(Inherited from Control)
GetContainerControl() GetContainerControl() GetContainerControl() GetContainerControl()

Devuelve el siguiente ContainerControl (en sentido ascendente) de la cadena de controles primarios del control.Returns the next ContainerControl up the control's chain of parent controls.

(Inherited from Control)
GetCurrentCellBounds() GetCurrentCellBounds() GetCurrentCellBounds() GetCurrentCellBounds()

Obtiene un objeto Rectangle que especifica las cuatro esquinas de la celda seleccionada.Gets a Rectangle that specifies the four corners of the selected cell.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada.Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Recupera el objeto de servicio de duración actual que controla la directiva de duración de esta instancia.Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetNextControl(Control, Boolean) GetNextControl(Control, Boolean) GetNextControl(Control, Boolean) GetNextControl(Control, Boolean)

Recupera el siguiente control, hacia delante o hacia atrás, en el orden de tabulación de controles secundarios.Retrieves the next control forward or back in the tab order of child controls.

(Inherited from Control)
GetOutputTextDelimiter() GetOutputTextDelimiter() GetOutputTextDelimiter() GetOutputTextDelimiter()

Obtiene la cadena que es el delimitador entre las columnas cuando el contenido de la fila se copia al Portapapeles.Gets the string that is the delimiter between columns when row contents are copied to the Clipboard.

GetPreferredSize(Size) GetPreferredSize(Size) GetPreferredSize(Size) GetPreferredSize(Size)

Recupera el tamaño de un área rectangular en la que se puede encajar un control.Retrieves the size of a rectangular area into which a control can be fitted.

(Inherited from Control)
GetScaledBounds(Rectangle, SizeF, BoundsSpecified) GetScaledBounds(Rectangle, SizeF, BoundsSpecified) GetScaledBounds(Rectangle, SizeF, BoundsSpecified) GetScaledBounds(Rectangle, SizeF, BoundsSpecified)

Recupera los límites dentro de los cuales se escala el control.Retrieves the bounds within which the control is scaled.

(Inherited from Control)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Devuelve un objeto que representa el servicio suministrado por Component o por Container.Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component)
GetStyle(ControlStyles) GetStyle(ControlStyles) GetStyle(ControlStyles) GetStyle(ControlStyles)

Recupera el valor del bit de estilo de control especificado para el control.Retrieves the value of the specified control style bit for the control.

(Inherited from Control)
GetTopLevel() GetTopLevel() GetTopLevel() GetTopLevel()

Determina si el control es de nivel superior.Determines if the control is a top-level control.

(Inherited from Control)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

(Inherited from Object)
GridHScrolled(Object, ScrollEventArgs) GridHScrolled(Object, ScrollEventArgs) GridHScrolled(Object, ScrollEventArgs) GridHScrolled(Object, ScrollEventArgs)

Realiza escuchas para el evento de desplazamiento de la barra de desplazamiento horizontal.Listens for the scroll event of the horizontal scroll bar.

GridVScrolled(Object, ScrollEventArgs) GridVScrolled(Object, ScrollEventArgs) GridVScrolled(Object, ScrollEventArgs) GridVScrolled(Object, ScrollEventArgs)

Realiza escuchas para el evento de desplazamiento de la barra de desplazamiento vertical.Listens for the scroll event of the vertical scroll bar.

Hide() Hide() Hide() Hide()

Oculta el control al usuario.Conceals the control from the user.

(Inherited from Control)
HitTest(Int32, Int32) HitTest(Int32, Int32) HitTest(Int32, Int32) HitTest(Int32, Int32)

Obtiene información, como el número de fila y columna de un punto de la cuadrícula en el que se ha hecho clic, mediante las coordenadas x e y que se han pasado al método.Gets information, such as row and column number of a clicked point on the grid, using the x and y coordinate passed to the method.

HitTest(Point) HitTest(Point) HitTest(Point) HitTest(Point)

Obtiene información de la cuadrícula, como el número de fila y columna de un punto de la cuadrícula en el que se ha hecho clic, mediante un Point específico.Gets information, such as row and column number of a clicked point on the grid, about the grid using a specific Point.

InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtiene un objeto de servicio de duración para controlar la directiva de duración de esta instancia.Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
InitLayout() InitLayout() InitLayout() InitLayout()

Se llama a este método cuando el control se ha agregado a otro contenedor.Called after the control has been added to another container.

(Inherited from Control)
Invalidate() Invalidate() Invalidate() Invalidate()

Invalida toda la superficie del control y hace que se vuelva a dibujar el control.Invalidates the entire surface of the control and causes the control to be redrawn.

(Inherited from Control)
Invalidate(Boolean) Invalidate(Boolean) Invalidate(Boolean) Invalidate(Boolean)

Invalida una región específica del control y hace que se envíe un mensaje de dibujo al control.Invalidates a specific region of the control and causes a paint message to be sent to the control. También puede invalidar los controles secundarios asignados al control.Optionally, invalidates the child controls assigned to the control.

(Inherited from Control)
Invalidate(Rectangle) Invalidate(Rectangle) Invalidate(Rectangle) Invalidate(Rectangle)

Invalida la región especificada del control (agrega esta región a la región de actualización del control, que es el área que volverá a pintarse en la siguiente operación de dibujo) y hace que se envíe un mensaje de dibujo al control.Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(Inherited from Control)
Invalidate(Rectangle, Boolean) Invalidate(Rectangle, Boolean) Invalidate(Rectangle, Boolean) Invalidate(Rectangle, Boolean)

Invalida la región especificada del control (agrega esta región a la región de actualización del control, que es el área que volverá a pintarse en la siguiente operación de dibujo) y hace que se envíe un mensaje de dibujo al control.Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. También puede invalidar los controles secundarios asignados al control.Optionally, invalidates the child controls assigned to the control.

(Inherited from Control)
Invalidate(Region) Invalidate(Region) Invalidate(Region) Invalidate(Region)

Invalida la región especificada del control (agrega esta región a la región de actualización del control, que es el área que volverá a pintarse en la siguiente operación de dibujo) y hace que se envíe un mensaje de dibujo al control.Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(Inherited from Control)
Invalidate(Region, Boolean) Invalidate(Region, Boolean) Invalidate(Region, Boolean) Invalidate(Region, Boolean)

Invalida la región especificada del control (agrega esta región a la región de actualización del control, que es el área que volverá a pintarse en la siguiente operación de dibujo) y hace que se envíe un mensaje de dibujo al control.Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. También puede invalidar los controles secundarios asignados al control.Optionally, invalidates the child controls assigned to the control.

(Inherited from Control)
Invoke(Delegate) Invoke(Delegate) Invoke(Delegate) Invoke(Delegate)

Ejecuta el delegado especificado en el subproceso que posee el identificador de ventana subyacente del control.Executes the specified delegate on the thread that owns the control's underlying window handle.

(Inherited from Control)
Invoke(Delegate, Object[]) Invoke(Delegate, Object[]) Invoke(Delegate, Object[]) Invoke(Delegate, Object[])

Ejecuta el delegado especificado en el subproceso que posee el identificador de la ventana subyacente del control, con la lista de argumentos especificada.Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.

(Inherited from Control)
InvokeGotFocus(Control, EventArgs) InvokeGotFocus(Control, EventArgs) InvokeGotFocus(Control, EventArgs) InvokeGotFocus(Control, EventArgs)

Genera el evento GotFocus para el control especificado.Raises the GotFocus event for the specified control.

(Inherited from Control)
InvokeLostFocus(Control, EventArgs) InvokeLostFocus(Control, EventArgs) InvokeLostFocus(Control, EventArgs) InvokeLostFocus(Control, EventArgs)

Genera el evento LostFocus para el control especificado.Raises the LostFocus event for the specified control.

(Inherited from Control)
InvokeOnClick(Control, EventArgs) InvokeOnClick(Control, EventArgs) InvokeOnClick(Control, EventArgs) InvokeOnClick(Control, EventArgs)

Genera el evento Click para el control especificado.Raises the Click event for the specified control.

(Inherited from Control)
InvokePaint(Control, PaintEventArgs) InvokePaint(Control, PaintEventArgs) InvokePaint(Control, PaintEventArgs) InvokePaint(Control, PaintEventArgs)

Genera el evento Paint para el control especificado.Raises the Paint event for the specified control.

(Inherited from Control)
InvokePaintBackground(Control, PaintEventArgs) InvokePaintBackground(Control, PaintEventArgs) InvokePaintBackground(Control, PaintEventArgs) InvokePaintBackground(Control, PaintEventArgs)

Genera el evento PaintBackground para el control especificado.Raises the PaintBackground event for the specified control.

(Inherited from Control)
IsExpanded(Int32) IsExpanded(Int32) IsExpanded(Int32) IsExpanded(Int32)

Obtiene un valor que indica si el nodo de una fila especificada está expandido o contraído.Gets a value that indicates whether the node of a specified row is expanded or collapsed.

IsInputChar(Char) IsInputChar(Char) IsInputChar(Char) IsInputChar(Char)

Determina si un carácter es un carácter de entrada que el control reconoce.Determines if a character is an input character that the control recognizes.

(Inherited from Control)
IsInputKey(Keys) IsInputKey(Keys) IsInputKey(Keys) IsInputKey(Keys)

Determina si la tecla especificada es una tecla de entrada normal o una tecla especial que requiere preprocesamiento.Determines whether the specified key is a regular input key or a special key that requires preprocessing.

(Inherited from Control)
IsSelected(Int32) IsSelected(Int32) IsSelected(Int32) IsSelected(Int32)

Obtiene un valor que indica si una fila determinada está seleccionada.Gets a value indicating whether a specified row is selected.

LogicalToDeviceUnits(Int32) LogicalToDeviceUnits(Int32) LogicalToDeviceUnits(Int32) LogicalToDeviceUnits(Int32)

Convierte un valor de PPP lógico a su valor de PPP DeviceUnit equivalente.Converts a Logical DPI value to its equivalent DeviceUnit DPI value.

(Inherited from Control)
LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size) LogicalToDeviceUnits(Size)

Convierte un formato de unidades lógicas a unidades de dispositivo escalándolo para el valor de PPP actual y redondeándolo al valor entero más próximo para la anchura y la altura.Transforms a size from logical to device units by scaling it for the current DPI and rounding down to the nearest integer value for width and height.

(Inherited from Control)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del objeto Object actual.Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Crea una copia superficial del objeto MarshalByRefObject actual.Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
NavigateBack() NavigateBack() NavigateBack() NavigateBack()

Navega hasta la tabla anteriormente mostrada en la cuadrícula.Navigates back to the table previously displayed in the grid.

NavigateTo(Int32, String) NavigateTo(Int32, String) NavigateTo(Int32, String) NavigateTo(Int32, String)

Navega hasta la tabla especificada por la fila y el nombre de relación.Navigates to the table specified by row and relation name.

NotifyInvalidate(Rectangle) NotifyInvalidate(Rectangle) NotifyInvalidate(Rectangle) NotifyInvalidate(Rectangle)

Genera el evento Invalidated con una región especificada del control para invalidar.Raises the Invalidated event with a specified region of the control to invalidate.

(Inherited from Control)
OnAllowNavigationChanged(EventArgs) OnAllowNavigationChanged(EventArgs) OnAllowNavigationChanged(EventArgs) OnAllowNavigationChanged(EventArgs)

Genera el evento AllowNavigationChanged.Raises the AllowNavigationChanged event.

OnAutoSizeChanged(EventArgs) OnAutoSizeChanged(EventArgs) OnAutoSizeChanged(EventArgs) OnAutoSizeChanged(EventArgs)

Genera el evento AutoSizeChanged.Raises the AutoSizeChanged event.

(Inherited from Control)
OnBackButtonClicked(Object, EventArgs) OnBackButtonClicked(Object, EventArgs) OnBackButtonClicked(Object, EventArgs) OnBackButtonClicked(Object, EventArgs)

Escucha el evento correspondiente a la pulsación del botón de retroceso del título.Listens for the caption's back button clicked event.

OnBackColorChanged(EventArgs) OnBackColorChanged(EventArgs) OnBackColorChanged(EventArgs) OnBackColorChanged(EventArgs)

Genera el evento BackColorChanged.Raises the BackColorChanged event.

OnBackgroundColorChanged(EventArgs) OnBackgroundColorChanged(EventArgs) OnBackgroundColorChanged(EventArgs) OnBackgroundColorChanged(EventArgs)

Genera el evento BackgroundColorChanged.Raises the BackgroundColorChanged event.

OnBackgroundImageChanged(EventArgs) OnBackgroundImageChanged(EventArgs) OnBackgroundImageChanged(EventArgs) OnBackgroundImageChanged(EventArgs)

Genera el evento BackgroundImageChanged.Raises the BackgroundImageChanged event.

(Inherited from Control)
OnBackgroundImageLayoutChanged(EventArgs) OnBackgroundImageLayoutChanged(EventArgs) OnBackgroundImageLayoutChanged(EventArgs) OnBackgroundImageLayoutChanged(EventArgs)

Genera el evento BackgroundImageLayoutChanged.Raises the BackgroundImageLayoutChanged event.

(Inherited from Control)
OnBindingContextChanged(EventArgs) OnBindingContextChanged(EventArgs) OnBindingContextChanged(EventArgs) OnBindingContextChanged(EventArgs)

Genera el evento BindingContextChanged.Raises the BindingContextChanged event.

OnBorderStyleChanged(EventArgs) OnBorderStyleChanged(EventArgs) OnBorderStyleChanged(EventArgs) OnBorderStyleChanged(EventArgs)

Genera el evento BorderStyleChanged.Raises the BorderStyleChanged event.

OnCaptionVisibleChanged(EventArgs) OnCaptionVisibleChanged(EventArgs) OnCaptionVisibleChanged(EventArgs) OnCaptionVisibleChanged(EventArgs)

Genera el evento CaptionVisibleChanged.Raises the CaptionVisibleChanged event.

OnCausesValidationChanged(EventArgs) OnCausesValidationChanged(EventArgs) OnCausesValidationChanged(EventArgs) OnCausesValidationChanged(EventArgs)

Genera el evento CausesValidationChanged.Raises the CausesValidationChanged event.

(Inherited from Control)
OnChangeUICues(UICuesEventArgs) OnChangeUICues(UICuesEventArgs) OnChangeUICues(UICuesEventArgs) OnChangeUICues(UICuesEventArgs)

Genera el evento ChangeUICues.Raises the ChangeUICues event.

(Inherited from Control)
OnClick(EventArgs) OnClick(EventArgs) OnClick(EventArgs) OnClick(EventArgs)

Genera el evento Click.Raises the Click event.

(Inherited from Control)
OnClientSizeChanged(EventArgs) OnClientSizeChanged(EventArgs) OnClientSizeChanged(EventArgs) OnClientSizeChanged(EventArgs)

Genera el evento ClientSizeChanged.Raises the ClientSizeChanged event.

(Inherited from Control)
OnContextMenuChanged(EventArgs) OnContextMenuChanged(EventArgs) OnContextMenuChanged(EventArgs) OnContextMenuChanged(EventArgs)

Genera el evento ContextMenuChanged.Raises the ContextMenuChanged event.

(Inherited from Control)
OnContextMenuStripChanged(EventArgs) OnContextMenuStripChanged(EventArgs) OnContextMenuStripChanged(EventArgs) OnContextMenuStripChanged(EventArgs)

Genera el evento ContextMenuStripChanged.Raises the ContextMenuStripChanged event.

(Inherited from Control)
OnControlAdded(ControlEventArgs) OnControlAdded(ControlEventArgs) OnControlAdded(ControlEventArgs) OnControlAdded(ControlEventArgs)

Genera el evento ControlAdded.Raises the ControlAdded event.

(Inherited from Control)
OnControlRemoved(ControlEventArgs) OnControlRemoved(ControlEventArgs) OnControlRemoved(ControlEventArgs) OnControlRemoved(ControlEventArgs)

Genera el evento ControlRemoved.Raises the ControlRemoved event.

(Inherited from Control)
OnCreateControl() OnCreateControl() OnCreateControl() OnCreateControl()

Provoca el método CreateControl().Raises the CreateControl() method.

(Inherited from Control)
OnCurrentCellChanged(EventArgs) OnCurrentCellChanged(EventArgs) OnCurrentCellChanged(EventArgs) OnCurrentCellChanged(EventArgs)

Genera el evento CurrentCellChanged.Raises the CurrentCellChanged event.

OnCursorChanged(EventArgs) OnCursorChanged(EventArgs) OnCursorChanged(EventArgs) OnCursorChanged(EventArgs)

Genera el evento CursorChanged.Raises the CursorChanged event.

(Inherited from Control)
OnDataSourceChanged(EventArgs) OnDataSourceChanged(EventArgs) OnDataSourceChanged(EventArgs) OnDataSourceChanged(EventArgs)

Genera el evento DataSourceChanged.Raises the DataSourceChanged event.

OnDockChanged(EventArgs) OnDockChanged(EventArgs) OnDockChanged(EventArgs) OnDockChanged(EventArgs)

Genera el evento DockChanged.Raises the DockChanged event.

(Inherited from Control)
OnDoubleClick(EventArgs) OnDoubleClick(EventArgs) OnDoubleClick(EventArgs) OnDoubleClick(EventArgs)

Genera el evento DoubleClick.Raises the DoubleClick event.

(Inherited from Control)
OnDpiChangedAfterParent(EventArgs) OnDpiChangedAfterParent(EventArgs) OnDpiChangedAfterParent(EventArgs) OnDpiChangedAfterParent(EventArgs)

Genera el evento DpiChangedAfterParent.Raises the DpiChangedAfterParent event.

(Inherited from Control)
OnDpiChangedBeforeParent(EventArgs) OnDpiChangedBeforeParent(EventArgs) OnDpiChangedBeforeParent(EventArgs) OnDpiChangedBeforeParent(EventArgs)

Genera el evento DpiChangedBeforeParent.Raises the DpiChangedBeforeParent event.

(Inherited from Control)
OnDragDrop(DragEventArgs) OnDragDrop(DragEventArgs) OnDragDrop(DragEventArgs) OnDragDrop(DragEventArgs)

Genera el evento DragDrop.Raises the DragDrop event.

(Inherited from Control)
OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs)

Genera el evento DragEnter.Raises the DragEnter event.

(Inherited from Control)
OnDragLeave(EventArgs) OnDragLeave(EventArgs) OnDragLeave(EventArgs) OnDragLeave(EventArgs)

Genera el evento DragLeave.Raises the DragLeave event.

(Inherited from Control)
OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs)

Genera el evento DragOver.Raises the DragOver event.

(Inherited from Control)
OnEnabledChanged(EventArgs) OnEnabledChanged(EventArgs) OnEnabledChanged(EventArgs) OnEnabledChanged(EventArgs)

Genera el evento EnabledChanged.Raises the EnabledChanged event.

(Inherited from Control)
OnEnter(EventArgs) OnEnter(EventArgs) OnEnter(EventArgs) OnEnter(EventArgs)

Genera el evento Enter.Raises the Enter event.

OnFlatModeChanged(EventArgs) OnFlatModeChanged(EventArgs) OnFlatModeChanged(EventArgs) OnFlatModeChanged(EventArgs)

Genera el evento FlatModeChanged.Raises the FlatModeChanged event.

OnFontChanged(EventArgs) OnFontChanged(EventArgs) OnFontChanged(EventArgs) OnFontChanged(EventArgs)

Genera el evento FontChanged.Raises the FontChanged event.

OnForeColorChanged(EventArgs) OnForeColorChanged(EventArgs) OnForeColorChanged(EventArgs) OnForeColorChanged(EventArgs)

Genera el evento ForeColorChanged.Raises the ForeColorChanged event.

OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs)

Genera el evento GiveFeedback.Raises the GiveFeedback event.

(Inherited from Control)
OnGotFocus(EventArgs) OnGotFocus(EventArgs) OnGotFocus(EventArgs) OnGotFocus(EventArgs)

Genera el evento GotFocus.Raises the GotFocus event.

(Inherited from Control)
OnHandleCreated(EventArgs) OnHandleCreated(EventArgs) OnHandleCreated(EventArgs) OnHandleCreated(EventArgs)

Genera el evento CreateHandle().Raises the CreateHandle() event.

OnHandleDestroyed(EventArgs) OnHandleDestroyed(EventArgs) OnHandleDestroyed(EventArgs) OnHandleDestroyed(EventArgs)

Genera el evento DestroyHandle().Raises the DestroyHandle() event.

OnHelpRequested(HelpEventArgs) OnHelpRequested(HelpEventArgs) OnHelpRequested(HelpEventArgs) OnHelpRequested(HelpEventArgs)

Genera el evento HelpRequested.Raises the HelpRequested event.

(Inherited from Control)
OnImeModeChanged(EventArgs) OnImeModeChanged(EventArgs) OnImeModeChanged(EventArgs) OnImeModeChanged(EventArgs)

Genera el evento ImeModeChanged.Raises the ImeModeChanged event.

(Inherited from Control)
OnInvalidated(InvalidateEventArgs) OnInvalidated(InvalidateEventArgs) OnInvalidated(InvalidateEventArgs) OnInvalidated(InvalidateEventArgs)

Genera el evento Invalidated.Raises the Invalidated event.

(Inherited from Control)
OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs)

Genera el evento KeyDown.Raises the KeyDown event.

OnKeyPress(KeyPressEventArgs) OnKeyPress(KeyPressEventArgs) OnKeyPress(KeyPressEventArgs) OnKeyPress(KeyPressEventArgs)

Genera el evento KeyPress.Raises the KeyPress event.

OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs)

Genera el evento KeyUp.Raises the KeyUp event.

(Inherited from Control)
OnLayout(LayoutEventArgs) OnLayout(LayoutEventArgs) OnLayout(LayoutEventArgs) OnLayout(LayoutEventArgs)

Provoca el evento Layout, que modifica la posición de los controles y actualiza las barras de desplazamiento.Raises the Layout event, which repositions controls and updates scroll bars.

OnLeave(EventArgs) OnLeave(EventArgs) OnLeave(EventArgs) OnLeave(EventArgs)

Genera el evento Leave.Raises the Leave event.

OnLocationChanged(EventArgs) OnLocationChanged(EventArgs) OnLocationChanged(EventArgs) OnLocationChanged(EventArgs)

Genera el evento LocationChanged.Raises the LocationChanged event.

(Inherited from Control)
OnLostFocus(EventArgs) OnLostFocus(EventArgs) OnLostFocus(EventArgs) OnLostFocus(EventArgs)

Genera el evento LostFocus.Raises the LostFocus event.

(Inherited from Control)
OnMarginChanged(EventArgs) OnMarginChanged(EventArgs) OnMarginChanged(EventArgs) OnMarginChanged(EventArgs)

Genera el evento MarginChanged.Raises the MarginChanged event.

(Inherited from Control)
OnMouseCaptureChanged(EventArgs) OnMouseCaptureChanged(EventArgs) OnMouseCaptureChanged(EventArgs) OnMouseCaptureChanged(EventArgs)

Genera el evento MouseCaptureChanged.Raises the MouseCaptureChanged event.

(Inherited from Control)
OnMouseClick(MouseEventArgs) OnMouseClick(MouseEventArgs) OnMouseClick(MouseEventArgs) OnMouseClick(MouseEventArgs)

Genera el evento MouseClick.Raises the MouseClick event.

(Inherited from Control)
OnMouseDoubleClick(MouseEventArgs) OnMouseDoubleClick(MouseEventArgs) OnMouseDoubleClick(MouseEventArgs) OnMouseDoubleClick(MouseEventArgs)

Genera el evento MouseDoubleClick.Raises the MouseDoubleClick event.

(Inherited from Control)
OnMouseDown(MouseEventArgs) OnMouseDown(MouseEventArgs) OnMouseDown(MouseEventArgs) OnMouseDown(MouseEventArgs)

Genera el evento MouseDown.Raises the MouseDown event.

OnMouseEnter(EventArgs) OnMouseEnter(EventArgs) OnMouseEnter(EventArgs) OnMouseEnter(EventArgs)

Genera el evento MouseEnter.Raises the MouseEnter event.

(Inherited from Control)
OnMouseHover(EventArgs) OnMouseHover(EventArgs) OnMouseHover(EventArgs) OnMouseHover(EventArgs)

Genera el evento MouseHover.Raises the MouseHover event.

(Inherited from Control)
OnMouseLeave(EventArgs) OnMouseLeave(EventArgs) OnMouseLeave(EventArgs) OnMouseLeave(EventArgs)

Provoca el evento MouseLeave.Creates the MouseLeave event.

OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs)

Genera el evento MouseMove.Raises the MouseMove event.

OnMouseUp(MouseEventArgs) OnMouseUp(MouseEventArgs) OnMouseUp(MouseEventArgs) OnMouseUp(MouseEventArgs)

Genera el evento MouseUp.Raises the MouseUp event.

OnMouseWheel(MouseEventArgs) OnMouseWheel(MouseEventArgs) OnMouseWheel(MouseEventArgs) OnMouseWheel(MouseEventArgs)

Genera el evento MouseWheel.Raises the MouseWheel event.

OnMove(EventArgs) OnMove(EventArgs) OnMove(EventArgs) OnMove(EventArgs)

Genera el evento Move.Raises the Move event.

(Inherited from Control)
OnNavigate(NavigateEventArgs) OnNavigate(NavigateEventArgs) OnNavigate(NavigateEventArgs) OnNavigate(NavigateEventArgs)

Genera el evento Navigate.Raises the Navigate event.

OnNotifyMessage(Message) OnNotifyMessage(Message) OnNotifyMessage(Message) OnNotifyMessage(Message)

Notifica al control los mensajes de Windows.Notifies the control of Windows messages.

(Inherited from Control)
OnPaddingChanged(EventArgs) OnPaddingChanged(EventArgs) OnPaddingChanged(EventArgs) OnPaddingChanged(EventArgs)

Genera el evento PaddingChanged.Raises the PaddingChanged event.

(Inherited from Control)
OnPaint(PaintEventArgs) OnPaint(PaintEventArgs) OnPaint(PaintEventArgs) OnPaint(PaintEventArgs)

Genera el evento Paint.Raises the Paint event.

OnPaintBackground(PaintEventArgs) OnPaintBackground(PaintEventArgs) OnPaintBackground(PaintEventArgs) OnPaintBackground(PaintEventArgs)

Reemplaza el método OnPaintBackground(PaintEventArgs) para impedir que se dibuje el fondo del control DataGrid.Overrides OnPaintBackground(PaintEventArgs) to prevent painting the background of the DataGrid control.

OnParentBackColorChanged(EventArgs) OnParentBackColorChanged(EventArgs) OnParentBackColorChanged(EventArgs) OnParentBackColorChanged(EventArgs)

Provoca el evento BackColorChanged cuando cambia el valor de la propiedad BackColor del contenedor del control.Raises the BackColorChanged event when the BackColor property value of the control's container changes.

(Inherited from Control)
OnParentBackgroundImageChanged(EventArgs) OnParentBackgroundImageChanged(EventArgs) OnParentBackgroundImageChanged(EventArgs) OnParentBackgroundImageChanged(EventArgs)

Provoca el evento BackgroundImageChanged cuando cambia el valor de la propiedad BackgroundImage del contenedor del control.Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes.

(Inherited from Control)
OnParentBindingContextChanged(EventArgs) OnParentBindingContextChanged(EventArgs) OnParentBindingContextChanged(EventArgs) OnParentBindingContextChanged(EventArgs)

Provoca el evento BindingContextChanged cuando cambia el valor de la propiedad BindingContext del contenedor del control.Raises the BindingContextChanged event when the BindingContext property value of the control's container changes.

(Inherited from Control)
OnParentChanged(EventArgs) OnParentChanged(EventArgs) OnParentChanged(EventArgs) OnParentChanged(EventArgs)

Genera el evento ParentChanged.Raises the ParentChanged event.

(Inherited from Control)
OnParentCursorChanged(EventArgs) OnParentCursorChanged(EventArgs) OnParentCursorChanged(EventArgs) OnParentCursorChanged(EventArgs)

Genera el evento CursorChanged.Raises the CursorChanged event.

(Inherited from Control)
OnParentEnabledChanged(EventArgs) OnParentEnabledChanged(EventArgs) OnParentEnabledChanged(EventArgs) OnParentEnabledChanged(EventArgs)

Provoca el evento EnabledChanged cuando cambia el valor de la propiedad Enabled del contenedor del control.Raises the EnabledChanged event when the Enabled property value of the control's container changes.

(Inherited from Control)
OnParentFontChanged(EventArgs) OnParentFontChanged(EventArgs) OnParentFontChanged(EventArgs) OnParentFontChanged(EventArgs)

Provoca el evento FontChanged cuando cambia el valor de la propiedad Font del contenedor del control.Raises the FontChanged event when the Font property value of the control's container changes.

(Inherited from Control)
OnParentForeColorChanged(EventArgs) OnParentForeColorChanged(EventArgs) OnParentForeColorChanged(EventArgs) OnParentForeColorChanged(EventArgs)

Provoca el evento ForeColorChanged cuando cambia el valor de la propiedad ForeColor del contenedor del control.Raises the ForeColorChanged event when the ForeColor property value of the control's container changes.

(Inherited from Control)
OnParentRightToLeftChanged(EventArgs) OnParentRightToLeftChanged(EventArgs) OnParentRightToLeftChanged(EventArgs) OnParentRightToLeftChanged(EventArgs)

Provoca el evento RightToLeftChanged cuando cambia el valor de la propiedad RightToLeft del contenedor del control.Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes.

(Inherited from Control)
OnParentRowsLabelStyleChanged(EventArgs) OnParentRowsLabelStyleChanged(EventArgs) OnParentRowsLabelStyleChanged(EventArgs) OnParentRowsLabelStyleChanged(EventArgs)

Genera el evento ParentRowsLabelStyleChanged.Raises the ParentRowsLabelStyleChanged event.

OnParentRowsVisibleChanged(EventArgs) OnParentRowsVisibleChanged(EventArgs) OnParentRowsVisibleChanged(EventArgs) OnParentRowsVisibleChanged(EventArgs)

Genera el evento ParentRowsVisibleChanged.Raises the ParentRowsVisibleChanged event.

OnParentVisibleChanged(EventArgs) OnParentVisibleChanged(EventArgs) OnParentVisibleChanged(EventArgs) OnParentVisibleChanged(EventArgs)

Provoca el evento VisibleChanged cuando cambia el valor de la propiedad Visible del contenedor del control.Raises the VisibleChanged event when the Visible property value of the control's container changes.

(Inherited from Control)
OnPreviewKeyDown(PreviewKeyDownEventArgs) OnPreviewKeyDown(PreviewKeyDownEventArgs) OnPreviewKeyDown(PreviewKeyDownEventArgs) OnPreviewKeyDown(PreviewKeyDownEventArgs)

Genera el evento PreviewKeyDown.Raises the PreviewKeyDown event.

(Inherited from Control)
OnPrint(PaintEventArgs) OnPrint(PaintEventArgs) OnPrint(PaintEventArgs) OnPrint(PaintEventArgs)

Genera el evento Paint.Raises the Paint event.

(Inherited from Control)
OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs)

Genera el evento QueryContinueDrag.Raises the QueryContinueDrag event.

(Inherited from Control)
OnReadOnlyChanged(EventArgs) OnReadOnlyChanged(EventArgs) OnReadOnlyChanged(EventArgs) OnReadOnlyChanged(EventArgs)

Genera el evento ReadOnlyChanged.Raises the ReadOnlyChanged event

OnRegionChanged(EventArgs) OnRegionChanged(EventArgs) OnRegionChanged(EventArgs) OnRegionChanged(EventArgs)

Genera el evento RegionChanged.Raises the RegionChanged event.

(Inherited from Control)
OnResize(EventArgs) OnResize(EventArgs) OnResize(EventArgs) OnResize(EventArgs)

Genera el evento Resize.Raises the Resize event.

OnRightToLeftChanged(EventArgs) OnRightToLeftChanged(EventArgs) OnRightToLeftChanged(EventArgs) OnRightToLeftChanged(EventArgs)

Genera el evento RightToLeftChanged.Raises the RightToLeftChanged event.

(Inherited from Control)
OnRowHeaderClick(EventArgs) OnRowHeaderClick(EventArgs) OnRowHeaderClick(EventArgs) OnRowHeaderClick(EventArgs)

Genera el evento RowHeaderClick.Raises the RowHeaderClick event.

OnScroll(EventArgs) OnScroll(EventArgs) OnScroll(EventArgs) OnScroll(EventArgs)

Genera el evento Scroll.Raises the Scroll event.

OnShowParentDetailsButtonClicked(Object, EventArgs) OnShowParentDetailsButtonClicked(Object, EventArgs) OnShowParentDetailsButtonClicked(Object, EventArgs) OnShowParentDetailsButtonClicked(Object, EventArgs)

Genera el evento ShowParentDetailsButtonClick.Raises the ShowParentDetailsButtonClick event.

OnSizeChanged(EventArgs) OnSizeChanged(EventArgs) OnSizeChanged(EventArgs) OnSizeChanged(EventArgs)

Genera el evento SizeChanged.Raises the SizeChanged event.

(Inherited from Control)
OnStyleChanged(EventArgs) OnStyleChanged(EventArgs) OnStyleChanged(EventArgs) OnStyleChanged(EventArgs)

Genera el evento StyleChanged.Raises the StyleChanged event.

(Inherited from Control)
OnSystemColorsChanged(EventArgs) OnSystemColorsChanged(EventArgs) OnSystemColorsChanged(EventArgs) OnSystemColorsChanged(EventArgs)

Genera el evento SystemColorsChanged.Raises the SystemColorsChanged event.

(Inherited from Control)
OnTabIndexChanged(EventArgs) OnTabIndexChanged(EventArgs) OnTabIndexChanged(EventArgs) OnTabIndexChanged(EventArgs)

Genera el evento TabIndexChanged.Raises the TabIndexChanged event.

(Inherited from Control)
OnTabStopChanged(EventArgs) OnTabStopChanged(EventArgs) OnTabStopChanged(EventArgs) OnTabStopChanged(EventArgs)

Genera el evento TabStopChanged.Raises the TabStopChanged event.

(Inherited from Control)
OnTextChanged(EventArgs) OnTextChanged(EventArgs) OnTextChanged(EventArgs) OnTextChanged(EventArgs)

Genera el evento TextChanged.Raises the TextChanged event.

(Inherited from Control)
OnValidated(EventArgs) OnValidated(EventArgs) OnValidated(EventArgs) OnValidated(EventArgs)

Genera el evento Validated.Raises the Validated event.

(Inherited from Control)
OnValidating(CancelEventArgs) OnValidating(CancelEventArgs) OnValidating(CancelEventArgs) OnValidating(CancelEventArgs)

Genera el evento Validating.Raises the Validating event.

(Inherited from Control)
OnVisibleChanged(EventArgs) OnVisibleChanged(EventArgs) OnVisibleChanged(EventArgs) OnVisibleChanged(EventArgs)

Genera el evento VisibleChanged.Raises the VisibleChanged event.

(Inherited from Control)
PerformLayout() PerformLayout() PerformLayout() PerformLayout()

Obliga al control a aplicar la lógica de diseño a todos sus controles secundarios.Forces the control to apply layout logic to all its child controls.

(Inherited from Control)
PerformLayout(Control, String) PerformLayout(Control, String) PerformLayout(Control, String) PerformLayout(Control, String)

Obliga al control a aplicar la lógica de diseño a todos sus controles secundarios.Forces the control to apply layout logic to all its child controls.

(Inherited from Control)
PointToClient(Point) PointToClient(Point) PointToClient(Point) PointToClient(Point)

Calcula la ubicación del punto especificado de la pantalla, en coordenadas de cliente.Computes the location of the specified screen point into client coordinates.

(Inherited from Control)
PointToScreen(Point) PointToScreen(Point) PointToScreen(Point) PointToScreen(Point)

Calcula la ubicación del punto especificado de cliente en coordenadas de pantalla.Computes the location of the specified client point into screen coordinates.

(Inherited from Control)
PreProcessControlMessage(Message) PreProcessControlMessage(Message) PreProcessControlMessage(Message) PreProcessControlMessage(Message)

Preprocesa los mensajes de teclado o de entrada en el bucle de mensajes antes de enviarlos.Preprocesses keyboard or input messages within the message loop before they are dispatched.

(Inherited from Control)
PreProcessMessage(Message) PreProcessMessage(Message) PreProcessMessage(Message) PreProcessMessage(Message)

Preprocesa los mensajes de teclado o de entrada en el bucle de mensajes antes de enviarlos.Preprocesses keyboard or input messages within the message loop before they are dispatched.

(Inherited from Control)
ProcessCmdKey(Message, Keys) ProcessCmdKey(Message, Keys) ProcessCmdKey(Message, Keys) ProcessCmdKey(Message, Keys)

Procesa una tecla de comando.Processes a command key.

(Inherited from Control)
ProcessDialogChar(Char) ProcessDialogChar(Char) ProcessDialogChar(Char) ProcessDialogChar(Char)

Procesa un carácter de diálogo.Processes a dialog character.

(Inherited from Control)
ProcessDialogKey(Keys) ProcessDialogKey(Keys) ProcessDialogKey(Keys) ProcessDialogKey(Keys)

Obtiene o establece un valor que indica si una tecla debe seguir procesándose.Gets or sets a value that indicates whether a key should be processed further.

ProcessGridKey(KeyEventArgs) ProcessGridKey(KeyEventArgs) ProcessGridKey(KeyEventArgs) ProcessGridKey(KeyEventArgs)

Procesa teclas para navegar por la cuadrícula.Processes keys for grid navigation.

ProcessKeyEventArgs(Message) ProcessKeyEventArgs(Message) ProcessKeyEventArgs(Message) ProcessKeyEventArgs(Message)

Procesa un mensaje de tecla y genera los eventos de control correspondientes.Processes a key message and generates the appropriate control events.

(Inherited from Control)
ProcessKeyMessage(Message) ProcessKeyMessage(Message) ProcessKeyMessage(Message) ProcessKeyMessage(Message)

Procesa un mensaje de teclado.Processes a keyboard message.

(Inherited from Control)
ProcessKeyPreview(Message) ProcessKeyPreview(Message) ProcessKeyPreview(Message) ProcessKeyPreview(Message)

Muestra una vista previa de un mensaje del teclado y devuelve un valor que indica si se ha utilizado la tecla.Previews a keyboard message and returns a value indicating if the key was consumed.

ProcessMnemonic(Char) ProcessMnemonic(Char) ProcessMnemonic(Char) ProcessMnemonic(Char)

Procesa un carácter de tecla de acceso.Processes a mnemonic character.

(Inherited from Control)
ProcessTabKey(Keys) ProcessTabKey(Keys) ProcessTabKey(Keys) ProcessTabKey(Keys)

Obtiene un valor que indica si la tecla TAB debe procesarse.Gets a value indicating whether the Tab key should be processed.

RaiseDragEvent(Object, DragEventArgs) RaiseDragEvent(Object, DragEventArgs) RaiseDragEvent(Object, DragEventArgs) RaiseDragEvent(Object, DragEventArgs)

Genera el evento de arrastre adecuado.Raises the appropriate drag event.

(Inherited from Control)
RaiseKeyEvent(Object, KeyEventArgs) RaiseKeyEvent(Object, KeyEventArgs) RaiseKeyEvent(Object, KeyEventArgs) RaiseKeyEvent(Object, KeyEventArgs)

Provoca el evento de tecla adecuado.Raises the appropriate key event.

(Inherited from Control)
RaiseMouseEvent(Object, MouseEventArgs) RaiseMouseEvent(Object, MouseEventArgs) RaiseMouseEvent(Object, MouseEventArgs) RaiseMouseEvent(Object, MouseEventArgs)

Provoca el evento del mouse adecuado.Raises the appropriate mouse event.

(Inherited from Control)
RaisePaintEvent(Object, PaintEventArgs) RaisePaintEvent(Object, PaintEventArgs) RaisePaintEvent(Object, PaintEventArgs) RaisePaintEvent(Object, PaintEventArgs)

Provoca el evento de dibujo adecuado.Raises the appropriate paint event.

(Inherited from Control)
RecreateHandle() RecreateHandle() RecreateHandle() RecreateHandle()

Obliga a que se vuelva a crear el identificador del control.Forces the re-creation of the handle for the control.

(Inherited from Control)
RectangleToClient(Rectangle) RectangleToClient(Rectangle) RectangleToClient(Rectangle) RectangleToClient(Rectangle)

Calcula el tamaño y la ubicación del rectángulo de pantalla especificado, en coordenadas de cliente.Computes the size and location of the specified screen rectangle in client coordinates.

(Inherited from Control)
RectangleToScreen(Rectangle) RectangleToScreen(Rectangle) RectangleToScreen(Rectangle) RectangleToScreen(Rectangle)

Calcula el tamaño y la ubicación del rectángulo de cliente especificado, en coordenadas de pantalla.Computes the size and location of the specified client rectangle in screen coordinates.

(Inherited from Control)
Refresh() Refresh() Refresh() Refresh()

Obliga al control a invalidar su área cliente y, acto seguido, obliga a que vuelva a dibujarse el control y sus controles secundarios.Forces the control to invalidate its client area and immediately redraw itself and any child controls.

(Inherited from Control)
RescaleConstantsForDpi(Int32, Int32) RescaleConstantsForDpi(Int32, Int32) RescaleConstantsForDpi(Int32, Int32) RescaleConstantsForDpi(Int32, Int32)

Proporciona constantes para cambiar la escala del control cuando se produce un cambio de PPP.Provides constants for rescaling the control when a DPI change occurs.

(Inherited from Control)
ResetAlternatingBackColor() ResetAlternatingBackColor() ResetAlternatingBackColor() ResetAlternatingBackColor()

Restablece el color predeterminado de la propiedad AlternatingBackColor.Resets the AlternatingBackColor property to its default color.

ResetBackColor() ResetBackColor() ResetBackColor() ResetBackColor()

Restablece el valor predeterminado de la propiedad BackColor.Resets the BackColor property to its default value.

ResetBindings() ResetBindings() ResetBindings() ResetBindings()

Hace que un control enlazado a BindingSource vuelva a leer todos los elementos de la lista y actualice los valores mostrados.Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values.

(Inherited from Control)
ResetCursor() ResetCursor() ResetCursor() ResetCursor()

Restablece el valor predeterminado de la propiedad Cursor.Resets the Cursor property to its default value.

(Inherited from Control)
ResetFont() ResetFont() ResetFont() ResetFont()

Restablece el valor predeterminado de la propiedad Font.Resets the Font property to its default value.

(Inherited from Control)
ResetForeColor() ResetForeColor() ResetForeColor() ResetForeColor()

Restablece el valor predeterminado de la propiedad ForeColor.Resets the ForeColor property to its default value.

ResetGridLineColor() ResetGridLineColor() ResetGridLineColor() ResetGridLineColor()

Restablece el valor predeterminado de la propiedad GridLineColor.Resets the GridLineColor property to its default value.

ResetHeaderBackColor() ResetHeaderBackColor() ResetHeaderBackColor() ResetHeaderBackColor()

Restablece el valor predeterminado de la propiedad HeaderBackColor.Resets the HeaderBackColor property to its default value.

ResetHeaderFont() ResetHeaderFont() ResetHeaderFont() ResetHeaderFont()

Restablece el valor predeterminado de la propiedad HeaderFont.Resets the HeaderFont property to its default value.

ResetHeaderForeColor() ResetHeaderForeColor() ResetHeaderForeColor() ResetHeaderForeColor()

Restablece el valor predeterminado de la propiedad HeaderForeColor.Resets the HeaderForeColor property to its default value.

ResetImeMode() ResetImeMode() ResetImeMode() ResetImeMode()

Restablece el valor predeterminado de la propiedad ImeMode.Resets the ImeMode property to its default value.

(Inherited from Control)
ResetLinkColor() ResetLinkColor() ResetLinkColor() ResetLinkColor()

Restablece el valor predeterminado de la propiedad LinkColor.Resets the LinkColor property to its default value.

ResetLinkHoverColor() ResetLinkHoverColor() ResetLinkHoverColor() ResetLinkHoverColor()

Restablece el valor predeterminado de la propiedad LinkHoverColor.Resets the LinkHoverColor property to its default value.

ResetMouseEventArgs() ResetMouseEventArgs() ResetMouseEventArgs() ResetMouseEventArgs()

Restablece el control para controlar el evento MouseLeave.Resets the control to handle the MouseLeave event.

(Inherited from Control)
ResetRightToLeft() ResetRightToLeft() ResetRightToLeft() ResetRightToLeft()

Restablece el valor predeterminado de la propiedad RightToLeft.Resets the RightToLeft property to its default value.

(Inherited from Control)
ResetSelection() ResetSelection() ResetSelection() ResetSelection()

Desactiva la selección de todas las filas seleccionadas.Turns off selection for all rows that are selected.

ResetSelectionBackColor() ResetSelectionBackColor() ResetSelectionBackColor() ResetSelectionBackColor()

Restablece el valor predeterminado de la propiedad SelectionBackColor.Resets the SelectionBackColor property to its default value.

ResetSelectionForeColor() ResetSelectionForeColor() ResetSelectionForeColor() ResetSelectionForeColor()

Restablece el valor predeterminado de la propiedad SelectionForeColor.Resets the SelectionForeColor property to its default value.

ResetText() ResetText() ResetText() ResetText()

Restablece el valor predeterminado de la propiedad Text (Empty).Resets the Text property to its default value (Empty).

(Inherited from Control)
ResumeLayout() ResumeLayout() ResumeLayout() ResumeLayout()

Reanuda la lógica de diseño habitual.Resumes usual layout logic.

(Inherited from Control)
ResumeLayout(Boolean) ResumeLayout(Boolean) ResumeLayout(Boolean) ResumeLayout(Boolean)

Reanuda la lógica de diseño habitual, forzando opcionalmente un diseño inmediato de las solicitudes de diseño pendientes.Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.

(Inherited from Control)
RtlTranslateAlignment(ContentAlignment) RtlTranslateAlignment(ContentAlignment) RtlTranslateAlignment(ContentAlignment) RtlTranslateAlignment(ContentAlignment)

Convierte la ContentAlignment especificada en la ContentAlignment correspondiente para que admita texto de derecha a izquierda.Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateAlignment(HorizontalAlignment) RtlTranslateAlignment(HorizontalAlignment) RtlTranslateAlignment(HorizontalAlignment) RtlTranslateAlignment(HorizontalAlignment)

Convierte la HorizontalAlignment especificada en la HorizontalAlignment correspondiente para que admita texto de derecha a izquierda.Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateAlignment(LeftRightAlignment) RtlTranslateAlignment(LeftRightAlignment) RtlTranslateAlignment(LeftRightAlignment) RtlTranslateAlignment(LeftRightAlignment)

Convierte la LeftRightAlignment especificada en la LeftRightAlignment correspondiente para que admita texto de derecha a izquierda.Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateContent(ContentAlignment) RtlTranslateContent(ContentAlignment) RtlTranslateContent(ContentAlignment) RtlTranslateContent(ContentAlignment)

Convierte la ContentAlignment especificada en la ContentAlignment correspondiente para que admita texto de derecha a izquierda.Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateHorizontal(HorizontalAlignment) RtlTranslateHorizontal(HorizontalAlignment) RtlTranslateHorizontal(HorizontalAlignment) RtlTranslateHorizontal(HorizontalAlignment)

Convierte la HorizontalAlignment especificada en la HorizontalAlignment correspondiente para que admita texto de derecha a izquierda.Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateLeftRight(LeftRightAlignment) RtlTranslateLeftRight(LeftRightAlignment) RtlTranslateLeftRight(LeftRightAlignment) RtlTranslateLeftRight(LeftRightAlignment)

Convierte la LeftRightAlignment especificada en la LeftRightAlignment correspondiente para que admita texto de derecha a izquierda.Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.

(Inherited from Control)
Scale(Single) Scale(Single) Scale(Single) Scale(Single)

Ajusta la escala del control y de todos los controles secundarios.Scales the control and any child controls.

(Inherited from Control)
Scale(Single, Single) Scale(Single, Single) Scale(Single, Single) Scale(Single, Single)

Ajusta a escala todo el control y los controles secundarios.Scales the entire control and any child controls.

(Inherited from Control)
Scale(SizeF) Scale(SizeF) Scale(SizeF) Scale(SizeF)

Escala el control y todos los controles secundarios según el factor de escala especificado.Scales the control and all child controls by the specified scaling factor.

(Inherited from Control)
ScaleBitmapLogicalToDevice(Bitmap) ScaleBitmapLogicalToDevice(Bitmap) ScaleBitmapLogicalToDevice(Bitmap) ScaleBitmapLogicalToDevice(Bitmap)

Escala un valor de mapa de bits lógico a su valor DeviceUnit equivalente cuando se produce un cambio de PPP.Scales a logical bitmap value to it's equivalent device unit value when a DPI change occurs.

(Inherited from Control)
ScaleControl(SizeF, BoundsSpecified) ScaleControl(SizeF, BoundsSpecified) ScaleControl(SizeF, BoundsSpecified) ScaleControl(SizeF, BoundsSpecified)

Escala la ubicación, el tamaño, el relleno y el margen de un control.Scales a control's location, size, padding and margin.

(Inherited from Control)
ScaleCore(Single, Single) ScaleCore(Single, Single) ScaleCore(Single, Single) ScaleCore(Single, Single)

Este método no es relevante para esta clase.This method is not relevant for this class.

(Inherited from Control)
Select() Select() Select() Select()

Activa el control.Activates the control.

(Inherited from Control)
Select(Boolean, Boolean) Select(Boolean, Boolean) Select(Boolean, Boolean) Select(Boolean, Boolean)

Activa un control secundario.Activates a child control. Opcionalmente, especifica la dirección en que se seleccionará el control en el orden de tabulación.Optionally specifies the direction in the tab order to select the control from.

(Inherited from Control)
Select(Int32) Select(Int32) Select(Int32) Select(Int32)

Selecciona la fila especificada.Selects a specified row.

SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean) SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean) SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean) SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean)

Activa el siguiente control.Activates the next control.

(Inherited from Control)
SendToBack() SendToBack() SendToBack() SendToBack()

Envía el control al final del orden Z.Sends the control to the back of the z-order.

(Inherited from Control)
SetAutoSizeMode(AutoSizeMode) SetAutoSizeMode(AutoSizeMode) SetAutoSizeMode(AutoSizeMode) SetAutoSizeMode(AutoSizeMode)

Establece un valor que indica cómo se comportará un control cuando su propiedad AutoSize esté habilitada.Sets a value indicating how a control will behave when its AutoSize property is enabled.

(Inherited from Control)
SetBounds(Int32, Int32, Int32, Int32) SetBounds(Int32, Int32, Int32, Int32) SetBounds(Int32, Int32, Int32, Int32) SetBounds(Int32, Int32, Int32, Int32)

Establece los límites del control en la ubicación y en el tamaño especificados.Sets the bounds of the control to the specified location and size.

(Inherited from Control)
SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)

Establece los límites especificados del control en la ubicación y en el tamaño especificados.Sets the specified bounds of the control to the specified location and size.

(Inherited from Control)
SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

Realiza la tarea de configurar los límites especificados de este control.Performs the work of setting the specified bounds of this control.

(Inherited from Control)
SetClientSizeCore(Int32, Int32) SetClientSizeCore(Int32, Int32) SetClientSizeCore(Int32, Int32) SetClientSizeCore(Int32, Int32)

Establece el tamaño del área cliente del control.Sets the size of the client area of the control.

(Inherited from Control)
SetDataBinding(Object, String) SetDataBinding(Object, String) SetDataBinding(Object, String) SetDataBinding(Object, String)

Establece las propiedades DataSource y DataMember en tiempo de ejecución.Sets the DataSource and DataMember properties at run time.

SetStyle(ControlStyles, Boolean) SetStyle(ControlStyles, Boolean) SetStyle(ControlStyles, Boolean) SetStyle(ControlStyles, Boolean)

Establece un marcador ControlStyles en true o false.Sets a specified ControlStyles flag to either true or false.

(Inherited from Control)
SetTopLevel(Boolean) SetTopLevel(Boolean) SetTopLevel(Boolean) SetTopLevel(Boolean)

Establece el control como el control de nivel superior.Sets the control as the top-level control.

(Inherited from Control)
SetVisibleCore(Boolean) SetVisibleCore(Boolean) SetVisibleCore(Boolean) SetVisibleCore(Boolean)

Establece el control en el estado de visibilidad especificado.Sets the control to the specified visible state.

(Inherited from Control)
ShouldSerializeAlternatingBackColor() ShouldSerializeAlternatingBackColor() ShouldSerializeAlternatingBackColor() ShouldSerializeAlternatingBackColor()

Indica si la propiedad AlternatingBackColor debe persistir.Indicates whether the AlternatingBackColor property should be persisted.

ShouldSerializeBackgroundColor() ShouldSerializeBackgroundColor() ShouldSerializeBackgroundColor() ShouldSerializeBackgroundColor()

Indica si la propiedad BackgroundColor debe persistir.Indicates whether the BackgroundColor property should be persisted.

ShouldSerializeCaptionBackColor() ShouldSerializeCaptionBackColor() ShouldSerializeCaptionBackColor() ShouldSerializeCaptionBackColor()

Obtiene un valor que indica si la propiedad CaptionBackColor debe persistir.Gets a value indicating whether the CaptionBackColor property should be persisted.

ShouldSerializeCaptionForeColor() ShouldSerializeCaptionForeColor() ShouldSerializeCaptionForeColor() ShouldSerializeCaptionForeColor()

Obtiene un valor que indica si la propiedad CaptionForeColor debe persistir.Gets a value indicating whether the CaptionForeColor property should be persisted.

ShouldSerializeGridLineColor() ShouldSerializeGridLineColor() ShouldSerializeGridLineColor() ShouldSerializeGridLineColor()

Indica si la propiedad GridLineColor debe persistir.Indicates whether the GridLineColor property should be persisted.

ShouldSerializeHeaderBackColor() ShouldSerializeHeaderBackColor() ShouldSerializeHeaderBackColor() ShouldSerializeHeaderBackColor()

Indica si la propiedad HeaderBackColor debe persistir.Indicates whether the HeaderBackColor property should be persisted.

ShouldSerializeHeaderFont() ShouldSerializeHeaderFont() ShouldSerializeHeaderFont() ShouldSerializeHeaderFont()

Indica si la propiedad HeaderFont debe persistir.Indicates whether the HeaderFont property should be persisted.

ShouldSerializeHeaderForeColor() ShouldSerializeHeaderForeColor() ShouldSerializeHeaderForeColor() ShouldSerializeHeaderForeColor()

Indica si la propiedad HeaderForeColor debe persistir.Indicates whether the HeaderForeColor property should be persisted.

ShouldSerializeLinkHoverColor() ShouldSerializeLinkHoverColor() ShouldSerializeLinkHoverColor() ShouldSerializeLinkHoverColor()

Indica si la propiedad LinkHoverColor debe persistir.Indicates whether the LinkHoverColor property should be persisted.

ShouldSerializeParentRowsBackColor() ShouldSerializeParentRowsBackColor() ShouldSerializeParentRowsBackColor() ShouldSerializeParentRowsBackColor()

Indica si la propiedad ParentRowsBackColor debe persistir.Indicates whether the ParentRowsBackColor property should be persisted.

ShouldSerializeParentRowsForeColor() ShouldSerializeParentRowsForeColor() ShouldSerializeParentRowsForeColor() ShouldSerializeParentRowsForeColor()

Indica si la propiedad ParentRowsForeColor debe persistir.Indicates whether the ParentRowsForeColor property should be persisted.

ShouldSerializePreferredRowHeight() ShouldSerializePreferredRowHeight() ShouldSerializePreferredRowHeight() ShouldSerializePreferredRowHeight()

Indica si la propiedad PreferredRowHeight debe persistir.Indicates whether the PreferredRowHeight property should be persisted.

ShouldSerializeSelectionBackColor() ShouldSerializeSelectionBackColor() ShouldSerializeSelectionBackColor() ShouldSerializeSelectionBackColor()

Indica si la propiedad SelectionBackColor debe persistir.Indicates whether the SelectionBackColor property should be persisted.

ShouldSerializeSelectionForeColor() ShouldSerializeSelectionForeColor() ShouldSerializeSelectionForeColor() ShouldSerializeSelectionForeColor()

Indica si la propiedad SelectionForeColor debe persistir.Indicates whether the SelectionForeColor property should be persisted.

Show() Show() Show() Show()

Muestra el control al usuario.Displays the control to the user.

(Inherited from Control)
SizeFromClientSize(Size) SizeFromClientSize(Size) SizeFromClientSize(Size) SizeFromClientSize(Size)

Determina el tamaño de todo el control a partir del alto y el ancho de su área cliente.Determines the size of the entire control from the height and width of its client area.

(Inherited from Control)
SubObjectsSiteChange(Boolean) SubObjectsSiteChange(Boolean) SubObjectsSiteChange(Boolean) SubObjectsSiteChange(Boolean)

Agrega o quita los objetos DataGridTableStyle del contenedor que está asociado con el control DataGrid.Adds or removes the DataGridTableStyle objects from the container that is associated with the DataGrid.

SuspendLayout() SuspendLayout() SuspendLayout() SuspendLayout()

Suspende temporalmente la lógica de diseño del control.Temporarily suspends the layout logic for the control.

(Inherited from Control)
ToString() ToString() ToString() ToString()

Devuelve una String que contiene el nombre del Component, si existe.Returns a String containing the name of the Component, if any. Este método no se debe invalidar.This method should not be overridden.

(Inherited from Component)
UnSelect(Int32) UnSelect(Int32) UnSelect(Int32) UnSelect(Int32)

Anula la selección de la fila especificada.Unselects a specified row.

Update() Update() Update() Update()

Hace que el control vuelva a dibujar las regiones no válidas en su área de cliente.Causes the control to redraw the invalidated regions within its client area.

(Inherited from Control)
UpdateBounds() UpdateBounds() UpdateBounds() UpdateBounds()

Actualiza los límites del control con la ubicación y el tamaño actuales.Updates the bounds of the control with the current size and location.

(Inherited from Control)
UpdateBounds(Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32)

Actualiza los límites del control con la ubicación y el tamaño especificados.Updates the bounds of the control with the specified size and location.

(Inherited from Control)
UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)

Actualiza los límites del control con el tamaño, la ubicación y el tamaño de cliente especificados.Updates the bounds of the control with the specified size, location, and client size.

(Inherited from Control)
UpdateStyles() UpdateStyles() UpdateStyles() UpdateStyles()

Obliga a que los estilos asignados vuelvan a aplicarse al control.Forces the assigned styles to be reapplied to the control.

(Inherited from Control)
UpdateZOrder() UpdateZOrder() UpdateZOrder() UpdateZOrder()

Actualiza el control en el orden Z de su control primario.Updates the control in its parent's z-order.

(Inherited from Control)
WndProc(Message) WndProc(Message) WndProc(Message) WndProc(Message)

Procesa los mensajes de Windows.Processes Windows messages.

(Inherited from Control)

Eventos

AllowNavigationChanged AllowNavigationChanged AllowNavigationChanged AllowNavigationChanged

Se produce cuando ha cambiado la propiedad AllowNavigation.Occurs when the AllowNavigation property has changed.

AutoSizeChanged AutoSizeChanged AutoSizeChanged AutoSizeChanged

Este evento no es relevante para esta clase.This event is not relevant for this class.

(Inherited from Control)
BackButtonClick BackButtonClick BackButtonClick BackButtonClick

Se produce cuando se hace clic en el botón Back de una tabla secundaria.Occurs when the Back button on a child table is clicked.

BackColorChanged BackColorChanged BackColorChanged BackColorChanged

Se produce cuando cambia el valor de la propiedad BackColor.Occurs when the value of the BackColor property changes.

(Inherited from Control)
BackgroundColorChanged BackgroundColorChanged BackgroundColorChanged BackgroundColorChanged

Se produce cuando BackgroundColor ha cambiado.Occurs when the BackgroundColor has changed.

BackgroundImageChanged BackgroundImageChanged BackgroundImageChanged BackgroundImageChanged

Se produce cuando cambia el valor de la propiedad BackgroundImage.Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged BackgroundImageLayoutChanged BackgroundImageLayoutChanged BackgroundImageLayoutChanged

Se produce cuando cambia el valor de la propiedad BackgroundImageLayout.Occurs when the value of the BackgroundImageLayout property changes.

BindingContextChanged BindingContextChanged BindingContextChanged BindingContextChanged

Se produce cuando cambia el valor de la propiedad BindingContext.Occurs when the value of the BindingContext property changes.

(Inherited from Control)
BorderStyleChanged BorderStyleChanged BorderStyleChanged BorderStyleChanged

Se produce cuando BorderStyle ha cambiado.Occurs when the BorderStyle has changed.

CaptionVisibleChanged CaptionVisibleChanged CaptionVisibleChanged CaptionVisibleChanged

Se produce cuando ha cambiado la propiedad CaptionVisible.Occurs when the CaptionVisible property has changed.

CausesValidationChanged CausesValidationChanged CausesValidationChanged CausesValidationChanged

Se produce cuando cambia el valor de la propiedad CausesValidation.Occurs when the value of the CausesValidation property changes.

(Inherited from Control)
ChangeUICues ChangeUICues ChangeUICues ChangeUICues

Se produce cuando cambian las guías de la interfaz de usuario para el foco o el teclado.Occurs when the focus or keyboard user interface (UI) cues change.

(Inherited from Control)
Click Click Click Click

Se produce cuando se hace clic en el control.Occurs when the control is clicked.

(Inherited from Control)
ClientSizeChanged ClientSizeChanged ClientSizeChanged ClientSizeChanged

Se produce cuando cambia el valor de la propiedad ClientSize.Occurs when the value of the ClientSize property changes.

(Inherited from Control)
ContextMenuChanged ContextMenuChanged ContextMenuChanged ContextMenuChanged

Se produce cuando cambia el valor de la propiedad ContextMenu.Occurs when the value of the ContextMenu property changes.

(Inherited from Control)
ContextMenuStripChanged ContextMenuStripChanged ContextMenuStripChanged ContextMenuStripChanged

Se produce cuando cambia el valor de la propiedad ContextMenuStrip.Occurs when the value of the ContextMenuStrip property changes.

(Inherited from Control)
ControlAdded ControlAdded ControlAdded ControlAdded

Se produce cuando se agrega un nuevo control a Control.ControlCollection.Occurs when a new control is added to the Control.ControlCollection.

(Inherited from Control)
ControlRemoved ControlRemoved ControlRemoved ControlRemoved

Se produce cuando se quita un control de Control.ControlCollection.Occurs when a control is removed from the Control.ControlCollection.

(Inherited from Control)
CurrentCellChanged CurrentCellChanged CurrentCellChanged CurrentCellChanged

Se produce cuando ha cambiado la propiedad CurrentCell.Occurs when the CurrentCell property has changed.

CursorChanged CursorChanged CursorChanged CursorChanged

Se produce cuando cambia el valor de la propiedad Cursor.Occurs when the value of the Cursor property changes.

DataSourceChanged DataSourceChanged DataSourceChanged DataSourceChanged

Se produce cuando cambia el valor de la propiedad DataSource.Occurs when the DataSource property value has changed.

Disposed Disposed Disposed Disposed

Se produce cuando el componente se elimina mediante una llamada al método Dispose().Occurs when the component is disposed by a call to the Dispose() method.

(Inherited from Component)
DockChanged DockChanged DockChanged DockChanged

Se produce cuando cambia el valor de la propiedad Dock.Occurs when the value of the Dock property changes.

(Inherited from Control)
DoubleClick DoubleClick DoubleClick DoubleClick

Se produce cuando se hace doble clic en el control.Occurs when the control is double-clicked.

(Inherited from Control)
DpiChangedAfterParent DpiChangedAfterParent DpiChangedAfterParent DpiChangedAfterParent

Se produce al cambiar mediante programación la configuración de PPP para un control después de que haya cambiado el valor de PPP para su control o formulario principal.Occurs when the DPI setting for a control is changed programmatically after the DPI of its parent control or form has changed.

(Inherited from Control)
DpiChangedBeforeParent DpiChangedBeforeParent DpiChangedBeforeParent DpiChangedBeforeParent

Se produce al cambiar mediante programación la configuración de PPP para un control antes de que tenga lugar un evento de cambio de PPP para su control o formulario principal.Occurs when the DPI setting for a control is changed programmatically before a DPI change event for its parent control or form has occurred.

(Inherited from Control)
DragDrop DragDrop DragDrop DragDrop

Se produce cuando se completa una operación de arrastrar y colocar.Occurs when a drag-and-drop operation is completed.

(Inherited from Control)
DragEnter DragEnter DragEnter DragEnter

Se produce cuando se arrastra un objeto dentro de los límites del control.Occurs when an object is dragged into the control's bounds.

(Inherited from Control)
DragLeave DragLeave DragLeave DragLeave

Se produce cuando se arrastra un objeto fuera de los límites del control.Occurs when an object is dragged out of the control's bounds.

(Inherited from Control)
DragOver DragOver DragOver DragOver

Se produce cuando se arrastra un objeto sobre los límites del control.Occurs when an object is dragged over the control's bounds.

(Inherited from Control)
EnabledChanged EnabledChanged EnabledChanged EnabledChanged

Se produce cuando cambia el valor de la propiedad Enabled.Occurs when the Enabled property value has changed.

(Inherited from Control)
Enter Enter Enter Enter

Se produce cuando se entra en el control.Occurs when the control is entered.

(Inherited from Control)
FlatModeChanged FlatModeChanged FlatModeChanged FlatModeChanged

Se produce cuando FlatMode ha cambiado.Occurs when the FlatMode has changed.

FontChanged FontChanged FontChanged FontChanged

Se produce cuando cambia el valor de la propiedad Font.Occurs when the Font property value changes.

(Inherited from Control)
ForeColorChanged ForeColorChanged ForeColorChanged ForeColorChanged

Se produce cuando cambia el valor de la propiedad ForeColor.Occurs when the ForeColor property value changes.

(Inherited from Control)
GiveFeedback GiveFeedback GiveFeedback GiveFeedback

Se produce durante una operación de arrastre.Occurs during a drag operation.

(Inherited from Control)
GotFocus GotFocus GotFocus GotFocus

Se produce cuando el control recibe el foco.Occurs when the control receives focus.

(Inherited from Control)
HandleCreated HandleCreated HandleCreated HandleCreated

Se produce cuando se crea un identificador para el control.Occurs when a handle is created for the control.

(Inherited from Control)
HandleDestroyed HandleDestroyed HandleDestroyed HandleDestroyed

Se produce cuando el identificador del control está en proceso de eliminación.Occurs when the control's handle is in the process of being destroyed.

(Inherited from Control)
HelpRequested HelpRequested HelpRequested HelpRequested

Se produce cuando el usuario solicita ayuda para un control.Occurs when the user requests help for a control.

(Inherited from Control)
ImeModeChanged ImeModeChanged ImeModeChanged ImeModeChanged

Se produce cuando ha cambiado la propiedad ImeMode.Occurs when the ImeMode property has changed.

(Inherited from Control)
Invalidated Invalidated Invalidated Invalidated

Se produce cuando es necesario volver a dibujar un control.Occurs when a control's display requires redrawing.

(Inherited from Control)
KeyDown KeyDown KeyDown KeyDown

Se produce cuando se presiona una tecla mientras el control tiene el foco.Occurs when a key is pressed while the control has focus.

(Inherited from Control)
KeyPress KeyPress KeyPress KeyPress

Se produce cuando se presionaOccurs when a character. una tecla de espacio o retroceso mientras el control tiene el foco.space or backspace key is pressed while the control has focus.

(Inherited from Control)
KeyUp KeyUp KeyUp KeyUp

Se produce cuando se suelta una tecla mientras el control tiene el foco.Occurs when a key is released while the control has focus.

(Inherited from Control)
Layout Layout Layout Layout

Se produce cuando un control debe volver a colocar sus controles secundarios.Occurs when a control should reposition its child controls.

(Inherited from Control)
Leave Leave Leave Leave

Se produce cuando el foco de entrada deja el control.Occurs when the input focus leaves the control.

(Inherited from Control)
LocationChanged LocationChanged LocationChanged LocationChanged

Se produce cuando cambia el valor de la propiedad Location.Occurs when the Location property value has changed.

(Inherited from Control)
LostFocus LostFocus LostFocus LostFocus

Se produce cuando el control pierde el foco.Occurs when the control loses focus.

(Inherited from Control)
MarginChanged MarginChanged MarginChanged MarginChanged

Se produce cuando cambia el margen del control.Occurs when the control's margin changes.

(Inherited from Control)
MouseCaptureChanged MouseCaptureChanged MouseCaptureChanged MouseCaptureChanged

Aparece cuando el control pierde la captura del mouse.Occurs when the control loses mouse capture.

(Inherited from Control)
MouseClick MouseClick MouseClick MouseClick

Se produce cuando se hace clic con el mouse en el control.Occurs when the control is clicked by the mouse.

(Inherited from Control)
MouseDoubleClick MouseDoubleClick MouseDoubleClick MouseDoubleClick

Se produce cuando se hace doble clic con el mouse en el control.Occurs when the control is double clicked by the mouse.

(Inherited from Control)
MouseDown MouseDown MouseDown MouseDown

Se produce cuando el puntero del mouse se encuentra sobre el control y se presiona un botón del mouse.Occurs when the mouse pointer is over the control and a mouse button is pressed.

(Inherited from Control)
MouseEnter MouseEnter MouseEnter MouseEnter

Se produce cuando el puntero del mouse entra en el control.Occurs when the mouse pointer enters the control.

(Inherited from Control)
MouseHover MouseHover MouseHover MouseHover

Se produce cuando el puntero del mouse se sitúa sobre el control.Occurs when the mouse pointer rests on the control.

(Inherited from Control)
MouseLeave MouseLeave MouseLeave MouseLeave

Se produce cuando el puntero del mouse deja el control.Occurs when the mouse pointer leaves the control.

(Inherited from Control)
MouseMove MouseMove MouseMove MouseMove

Se produce cuando el puntero del mouse se mueve sobre el control.Occurs when the mouse pointer is moved over the control.

(Inherited from Control)
MouseUp MouseUp MouseUp MouseUp

Se produce cuando el puntero del mouse se encuentra sobre el control y se suelta un botón del mouse.Occurs when the mouse pointer is over the control and a mouse button is released.

(Inherited from Control)
MouseWheel MouseWheel MouseWheel MouseWheel

Se produce cuando la rueda del mouse se mueve mientras el control tiene el foco.Occurs when the mouse wheel moves while the control has focus.

(Inherited from Control)
Move Move Move Move

Se produce cuando se mueve el control.Occurs when the control is moved.

(Inherited from Control)
Navigate Navigate Navigate Navigate

Se produce cuando el usuario navega a una nueva tabla.Occurs when the user navigates to a new table.

PaddingChanged PaddingChanged PaddingChanged PaddingChanged

Se produce cuando cambia el relleno del control.Occurs when the control's padding changes.

(Inherited from Control)
Paint Paint Paint Paint

Se produce cuando vuelve a dibujarse el control.Occurs when the control is redrawn.

(Inherited from Control)
ParentChanged ParentChanged ParentChanged ParentChanged

Se produce cuando cambia el valor de la propiedad Parent.Occurs when the Parent property value changes.

(Inherited from Control)
ParentRowsLabelStyleChanged ParentRowsLabelStyleChanged ParentRowsLabelStyleChanged ParentRowsLabelStyleChanged

Se produce cuando cambia el estilo de etiqueta de la fila primaria.Occurs when the label style of the parent row is changed.

ParentRowsVisibleChanged ParentRowsVisibleChanged ParentRowsVisibleChanged ParentRowsVisibleChanged

Se produce cuando cambia el valor de la propiedad ParentRowsVisible.Occurs when the ParentRowsVisible property value changes.

PreviewKeyDown PreviewKeyDown PreviewKeyDown PreviewKeyDown

Se produce antes que el evento KeyDown cuando se presiona una tecla mientras el foco está en este control.Occurs before the KeyDown event when a key is pressed while focus is on this control.

(Inherited from Control)
QueryAccessibilityHelp QueryAccessibilityHelp QueryAccessibilityHelp QueryAccessibilityHelp

Se produce cuando AccessibleObject proporciona ayuda para aplicaciones de accesibilidad.Occurs when AccessibleObject is providing help to accessibility applications.

(Inherited from Control)
QueryContinueDrag QueryContinueDrag QueryContinueDrag QueryContinueDrag

Se produce durante una operación de arrastrar y colocar, y permite al origen de arrastre determinar si la operación de arrastrar y colocar tiene que cancelarse.Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled.

(Inherited from Control)
ReadOnlyChanged ReadOnlyChanged ReadOnlyChanged ReadOnlyChanged

Se produce cuando cambia el valor de la propiedad ReadOnly.Occurs when the ReadOnly property value changes.

RegionChanged RegionChanged RegionChanged RegionChanged

Se produce cuando cambia el valor de la propiedad Region.Occurs when the value of the Region property changes.

(Inherited from Control)
Resize Resize Resize Resize

Se produce cuando se cambia el tamaño del control.Occurs when the control is resized.

(Inherited from Control)
RightToLeftChanged RightToLeftChanged RightToLeftChanged RightToLeftChanged

Se produce cuando cambia el valor de la propiedad RightToLeft.Occurs when the RightToLeft property value changes.

(Inherited from Control)
RowHeaderClick RowHeaderClick RowHeaderClick RowHeaderClick

Se produce cuando se hace clic en un encabezado de fila.Occurs when a row header is clicked.

Scroll Scroll Scroll Scroll

Se produce cuando el usuario desplaza el control DataGrid.Occurs when the user scrolls the DataGrid control.

ShowParentDetailsButtonClick ShowParentDetailsButtonClick ShowParentDetailsButtonClick ShowParentDetailsButtonClick

Se produce cuando se hace clic en el botón ShowParentDetails.Occurs when the ShowParentDetails button is clicked.

SizeChanged SizeChanged SizeChanged SizeChanged

Se produce cuando cambia el valor de la propiedad Size.Occurs when the Size property value changes.

(Inherited from Control)
StyleChanged StyleChanged StyleChanged StyleChanged

Se produce cuando cambia el estilo del control.Occurs when the control style changes.

(Inherited from Control)
SystemColorsChanged SystemColorsChanged SystemColorsChanged SystemColorsChanged

Se produce cuando se modifican los colores del sistema.Occurs when the system colors change.

(Inherited from Control)
TabIndexChanged TabIndexChanged TabIndexChanged TabIndexChanged

Se produce cuando cambia el valor de la propiedad TabIndex.Occurs when the TabIndex property value changes.

(Inherited from Control)
TabStopChanged TabStopChanged TabStopChanged TabStopChanged

Se produce cuando cambia el valor de la propiedad TabStop.Occurs when the TabStop property value changes.

(Inherited from Control)
TextChanged TextChanged TextChanged TextChanged

Se produce cuando cambia el valor de la propiedad Text.Occurs when the value of the Text property changes.

Validated Validated Validated Validated

Se produce cuando finaliza la validación del control.Occurs when the control is finished validating.

(Inherited from Control)
Validating Validating Validating Validating

Se produce cuando el control se está validando.Occurs when the control is validating.

(Inherited from Control)
VisibleChanged VisibleChanged VisibleChanged VisibleChanged

Se produce cuando cambia el valor de la propiedad Visible.Occurs when the Visible property value changes.

(Inherited from Control)

Implementaciones de interfaz explícitas

IDropTarget.OnDragDrop(DragEventArgs) IDropTarget.OnDragDrop(DragEventArgs) IDropTarget.OnDragDrop(DragEventArgs) IDropTarget.OnDragDrop(DragEventArgs)

Genera el evento DragDrop.Raises the DragDrop event.

(Inherited from Control)
IDropTarget.OnDragEnter(DragEventArgs) IDropTarget.OnDragEnter(DragEventArgs) IDropTarget.OnDragEnter(DragEventArgs) IDropTarget.OnDragEnter(DragEventArgs)

Genera el evento DragEnter.Raises the DragEnter event.

(Inherited from Control)
IDropTarget.OnDragLeave(EventArgs) IDropTarget.OnDragLeave(EventArgs) IDropTarget.OnDragLeave(EventArgs) IDropTarget.OnDragLeave(EventArgs)

Genera el evento DragLeave.Raises the DragLeave event.

(Inherited from Control)
IDropTarget.OnDragOver(DragEventArgs) IDropTarget.OnDragOver(DragEventArgs) IDropTarget.OnDragOver(DragEventArgs) IDropTarget.OnDragOver(DragEventArgs)

Genera el evento DragOver.Raises the DragOver event.

(Inherited from Control)

Se aplica a

Consulte también: