# DataForm Message

The **DataFormMessage** mimics the [RadDataForm](https://www.telerik.com/products/wpf/documentation/controls/raddataform/overview) 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<string> propertyNames**: the properties of the **item** have to be passed as collection of strings.
* **DateTime creationDate**: the **creationDate** parameter is optional.

**Defining a DataFormMessage**

```C#
Club chelsea = new Club()
{
    Name = "Chelsea",
    StadiumCapacity = 42055,
    Established = new DateTime(1905, 1, 1)
};

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

listProperties.Add("Name");
listProperties.Add("StadiumCapacity");
listProperties.Add("Established");

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

> caption Defining DataFormMessage

![Defining DataFormMessage](https://www.telerik.com/products/wpf/documentation/assets/8e3ace4e791c0deaffca0cf5a74b5bef/radchat_messages_dataform_01.png)

## See Also

* [Messages Overview](https://www.telerik.com/products/wpf/documentation/controls/radchat/messages/overview)
