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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access