Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Put property ID in <tr>


Message #1 by "welliton alves toledo" <welliton@r...> on Mon, 26 Aug 2002 20:42:56
Thanks Einar,

    Is just what I wont...
    []'s

> Add an event listener to the ItemCreated event:

myGrid.ItemCreated +=3D new DataGridItemEventHandler(Item_Created);

and add the following method:

protected void Item_Created(object sender, DataGridItemEventArgs e)
{
	if(e.Item.ItemType!=3DListItemType.Header)
	{
		string rowID =3D myGrid.UniqueID + "_row_" + =
e.Item.ItemIndex.ToString();
		e.Item.Attributes.Add("id", rowID);
	}
}


-----Original Message-----
From: welliton alves toledo [mailto:welliton@r...]
Sent: 26. august 2002 22:43
To: ASPX_Professional
Subject: [aspx_professional] Put property ID in <tr>


Hello Everyone!

     I've a DataGrid and I want to put property ID on tag <tr> to allow=20
use javascript function to change color of row when the mouse over.
     Someone know to do this?
---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=3D1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=3D1861007450

These books are a complete reference to the ASP.NET namespaces=20
for developers who are already familiar with using ASP.NET.=20
There is no trivial introductory material or useless .NET=20
hype and the presentation of the namespaces, in an easy-to use=20
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,=20
giving you those real-world tips that the documentation doesn't=20
offer, and demonstrating complex techniques with simple=20
examples. =20

---
---
Change your mail options at http://p2p.wrox.com/manager.asp or=20
to unsubscribe send a blank email to =


  Return to Index