=?Utf-8?B?SmltYm8gSmlt?=
2005-09-14 05:08:03 PM

As far as I can see there is no way to add any attribute to an object it has
to be one that is part of the control collection.
In a datagrid I would like to be able to give each row a unique id
(id="tr"+count)

For instance in javascript you can do this:
var myTD = document.createElement("tr");
myTD.setAttribute("id","td"+count);

Does anyone know if anything like this is available in v2 or even is
available and its something i have missed.
 

Re: custom attributes v2

Eliyahu Goldin
2005-09-14 08:22:00 PM

You can put any name-value pair in the Attributes collection.

Eliyahu

"Jimbo Jim" <JimboJim@discussions.microsoft.com>wrote in message
news:09767294-5726-4C1C-9B2A-7C82CF25A555@microsoft.com...
>As far as I can see there is no way to add any attribute to an object it
has
>to be one that is part of the control collection.
>In a datagrid I would like to be able to give each row a unique id
>(id="tr"+count)
>
>For instance in javascript you can do this:
>var myTD = document.createElement("tr");
>myTD.setAttribute("id","td"+count);
>
>Does anyone know if anything like this is available in v2 or even is
>available and its something i have missed.


 



Re: custom attributes v2

=?Utf-8?B?SmltYm8gSmlt?=
2005-09-19 10:30:00 PM

But can you do this if it is a DataGrid collection?

Basically I want to be able to ad an id to the TD tag.


"Eliyahu Goldin" wrote:

>You can put any name-value pair in the Attributes collection.
>
>Eliyahu
>
>"Jimbo Jim" <JimboJim@discussions.microsoft.com>wrote in message
>news:09767294-5726-4C1C-9B2A-7C82CF25A555@microsoft.com...
>>As far as I can see there is no way to add any attribute to an object it
>has
>>to be one that is part of the control collection.
>>In a datagrid I would like to be able to give each row a unique id
>>(id="tr"+count)
>>
>>For instance in javascript you can do this:
>>var myTD = document.createElement("tr");
>>myTD.setAttribute("id","td"+count);
>>
>>Does anyone know if anything like this is available in v2 or even is
>>available and its something i have missed.
>
>
>