itemdatabound is the default event of datagrid control which fires automatically at the time of databinding.it reads each and every rows from the resultset and binds to the datagrid.when ever we required to manipulate something at the time of databinding then we need to use this event.e.g if my gridcontrol contains another grid(as a child control) within it then itemdatabound event takes a vital role to bind the child controls at the time of binding of parent control with the result sets(either dataset,datatable or idictornaries).
itemdatabound is the default event of datagrid control which fires automatically at the time of databinding.it reads each and every rows from the resultset and binds to the datagrid.when ever we required to manipulate something at the time of databinding then we need to use this event.e.g if my gridcontrol contains another grid(as a child control) within it then itemdatabound event takes a vital role to bind the child controls at the time of binding of parent control with the result sets.
The ItemDataBound fires once for each DataGridItem added to the DataGrid (that is, it fires once for each row that is added to the DataGrid). Essentially, what we need to do is in this event handler, check to see if the price is below the threshold ($10.00, or whatever lower bound you choose). If it is, then we want to set the DataGridItem's BackColor property to Yellow, thereby highlighting the row.
What is the purpose of ItemDataBound with respect to a DataGrid.
for more questions on Datagrid checkout Datagrid in ASP.NET