R
Ryan Moore
I am trying to modify the onMouseOver attribute of a <td> cell created by a
DataList... according to
http://msdn.microsoft.com/library/d...fsystemwebuiwebcontrolsdatagridclasstopic.asp
"You can control the appearance of the DataGrid control by programmatically
adding attributes to the <td> and <tr> tags rendered by the control on the
browser. Attributes can be programmatically added by providing code in the
event handler for the OnItemCreated or OnItemDataBound event.
To add an attribute to the <td> tag, first get the TableCell object that
represents the cell in the DataGrid control you want to add the attribute
to. The Control.Controls collection for the Item property of the
DataGridItemEventArgs object passed into the event handler can be used to
get the desired TableCell object. You can then use the
AttributeCollection.Add method of the Attributes collection for the
TableCell object to add attributes to the <td> tag."
For the life of me, I cannot get the TableCell object that this page refers
to, can someone shed some light for me?
thnx
DataList... according to
http://msdn.microsoft.com/library/d...fsystemwebuiwebcontrolsdatagridclasstopic.asp
"You can control the appearance of the DataGrid control by programmatically
adding attributes to the <td> and <tr> tags rendered by the control on the
browser. Attributes can be programmatically added by providing code in the
event handler for the OnItemCreated or OnItemDataBound event.
To add an attribute to the <td> tag, first get the TableCell object that
represents the cell in the DataGrid control you want to add the attribute
to. The Control.Controls collection for the Item property of the
DataGridItemEventArgs object passed into the event handler can be used to
get the desired TableCell object. You can then use the
AttributeCollection.Add method of the Attributes collection for the
TableCell object to add attributes to the <td> tag."
For the life of me, I cannot get the TableCell object that this page refers
to, can someone shed some light for me?
thnx