BCGControlBar Library for .NET
Updated Property (GridDataItem)




Gets or sets a value that indicates whether the data is updated.
Syntax
'Declaration
 
Public Property Updated As Boolean
'Usage
 
Dim instance As GridDataItem
Dim value As Boolean
 
instance.Updated = value
 
value = instance.Updated
public bool Updated {get; set;}
public: __property bool get_Updated();
public: __property void set_Updated( 
   bool value
);
public:
property bool Updated {
   bool get();
   void set (    bool value);
}
Remarks
Use this property in custom cells to update complex data.
For example, GridDataItem represents a complex structure with many fields where the most of fields are used to initialize an edit control (e.g. these fields are essentially options) and one field contain editable data.
When the user finished to edit the data, the library needs to update it. In other words it has to replace ItemData with other pointer in order to raise the GridControl.DataItemUpdated event. But it's not feasible to copy large data structures just because one field has been changed. Therefore you can set the Updated property to true,  set back the same DataItem object and still have the DataItemUpdated event fired.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GridDataItem Class
GridDataItem Members

Send Feedback