ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DataColumn.DataChanged Property

Gets or sets a value indicating whether data in this column has been modified.

[Visual Basic]

Public Property DataChanged As Boolean

[C#]

public bool DataChanged {get;set;}

[Delphi]

public property DataChanged: Boolean read get_DataChanged write set_DataChanged;

Example

The following code uses the DataChanged property to query the modification state of the first column in the grid, if it has been modified it resets the contents:

·      Visual Basic

       If Me.C1TrueDBGrid1.Columns(0).DataChanged Then

           Me.C1TrueDBGrid1.Columns(0).DataChanged = False

       End If

·      C#

       if (this.c1TrueDBGrid1.Columns[0].DataChanged)

       {

           this.c1TrueDBGrid1.Columns[0].DataChanged = false;

       }

·      Delphi

       if Self.C1TrueDBGrid1.Columns[0].DataChanged then

         Self.C1TrueDBGrid1.Columns[0].DataChanged := False;

See Also

C1DataColumn Class | C1DataColumn Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.