How can the appearance be controlled in DataGrid?

How can the appearance be controlled in DataGrid?



- The appearance can be controlled by using the attributes and adding them using the programming.

- The tags that can be used are <td> and <tr> tags, that allows the rendering by having the control on the browser and the attributes that are used in this.

- Attributes can be used in the event handler for the OnItemCreated or OnItemDataBound event.

- The attribute if need to be added then a TableCell objects need to, be created that represents the cell in DataGrid.

- The DataGridItemEventArgs object is passed to the event handler to be used with the TableCell object and use of AttributeCollection.Add method allow the addition of attributes in the tags.
Post your comment