Edit this page

DataForm Message

The DataFormMessage mimics the RadDataForm control for displaying its data. The constructor of this message and its parameters are illustrated below.

  • MessageDisplayPosition displayPosition
  • Author author, object item: the item parameter has to be the reference of the item that is to be edited.
  • IEnumerable propertyNames: the properties of the item have to be passed as collection of strings.
  • DateTime creationDate: the creationDate parameter is optional.

Example 1: Defining a DataFormMessage

    Club chelsea = new Club()
            Name = "Chelsea",
            StadiumCapacity = 42055,
            Established = new DateTime(1905, 1, 1)

    List<string> listProperties = new List<string>();


    DataFormMessage dataFormMessage 
            = new DataFormMessage(MessageDisplayPosition.Inline, this.currentAuthor, chelsea, listProperties);

Figure 1: Defining DataFormMessage

Defining DataFormMessage

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article