Name

DataGridTextBox

Synopsis

This class, derived from the standard TextBox control, is used by the DataGridTextBoxColumn to support the editing of column text. You can access the DataGridTextBox for a specific column by using the DataGridTextBoxColumn.TextBox property. You could then hook the text box for validation, for example.


public class DataGridTextBox : TextBox {

// Public Constructors

   public DataGridTextBox();

// Public Instance Properties

   public bool IsInEditOrNavigateMode{set; get; }

// Public Instance Methods

   public void SetDataGrid(DataGrid parentGrid);

// Protected Instance Methods

   protected override void OnKeyPress(KeyPressEventArgs e);  // overrides Control

   protected override void OnMouseWheel(MouseEventArgs e);  // overrides Control

   protected internal override bool ProcessKeyMessage(ref Message m);  // overrides Control

}

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) Control(IOleContro, IOleObject, IOleInPlaceObject, IOleInPlaceActiveObject, IOleWindow, IViewObject, IViewObject2, IPersist, IPersistStreamInit, IPersistPropertyBag, IPersistStorage, IQuickActivate, System.ComponentModel.ISynchronizeInvoke, IWin32Window) TextBoxBase TextBox DataGridTextBox

Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.