DataGridTextBoxColumn.EnterNullValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enters a Value in the column.
protected public:
override void EnterNullValue();
protected internal override void EnterNullValue ();
override this.EnterNullValue : unit -> unit
Protected Friend Overrides Sub EnterNullValue ()
Examples
The following example tests a DataGridColumnStyle to determine its column type. If the column is a DataGridTextBoxColumn, and the DataColumn allows null
values, then the NullText property is set and the EnterNullValue method invoked.
Public Class Form1: Inherits Form
Protected dataGrid1 As DataGrid
Private Sub SetNullText()
Dim dgeCol As MyGridColumn
' Assumes a column named Status exists.
dgeCol = CType(DataGrid1.TableStyles("Customers"). _
GridColumnStyles("Status"), MyGridColumn)
dgeCol.EnterNull
End Sub
End Class
Public Class MyGridColumn
Inherits DataGridTextBoxColumn
Public Sub EnterNull()
me.EnterNullValue
End Sub
End Class
Remarks
Enters the NullText value into the cell.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
الملاحظات
https://aka.ms/ContentUserFeedback.
قريبًا: خلال عام 2024، سنتخلص تدريجيًا من GitHub Issues بوصفها آلية إرسال ملاحظات للمحتوى ونستبدلها بنظام ملاحظات جديد. لمزيد من المعلومات، راجعإرسال الملاحظات وعرضها المتعلقة بـ