Thank you for your question. Use Item Data Bound for this. Like bellow code.
<asp:DataGrid id="ItemsGrid" runat="server"
BorderColor="black"
BorderWidth="1"
CellPadding="3"
ShowFooter="true"
OnItemDataBound="Item_Bound"
<HeaderStyle BackColor="#00aaaa">
</HeaderStyle>
<FooterStyle BackColor="#00aaaa">
</FooterStyle>
</asp:DataGrid>
void Item_Bound(Object sender, DataGridItemEventArgs e)
{
}
Thanks,
Mamun