What is the procedure followed to add attributes in <tr> tag?
What is the procedure followed to add attributes in <tr> tag?
- To add the attribute to <tr> tag fist DataGridItem object is being intitialized.
- DataGridItem represents the row in the DataGrid control and it helps in adding the attribute to the tag.
- The DataGridItemEventArgs object is used to get the DataGridItem object that is passed into the event handler.
- The AttributeCollection.Add method is used for DataGridItem object to add the attribute to the <tr> tag that stores the collection of the collection of the GridItem.
- The addition of the attribute to the tag allows it to be represented in the web page or site according to the requirements.