Interviews4 answers
4 Answers
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).
kumar goutamPosted May 13, 2008, 11:15 PM EDT
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.
kumar goutamPosted May 13, 2008, 11:13 PM EDT
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.
Raj KumarPosted May 9, 2008, 4:08 AM EDT
What is the purpose of ItemDataBound with respect to a DataGrid.
for more questions on Datagrid checkout Datagrid in ASP.NET
SphurthyPosted May 5, 2008, 3:33 AM EDT
