DataList ItemIndex.

A

Adam Knight

Hi all,

I have asked this question previously, but haven't recieved an adequate
answer.
I am wanting to output a datalist ItemIndex in a page.

I know to display a data item i using <%# DataItem("mycolumn")%> and i know
how to append variables.

What i am missing, is how to retrieve a DataLists ItemIndex within a page..
Ie: <%# ?? What goes here in my page to output datalists ItemIndex ??%>

Cheers,
Adam
 
I

intrader

Hi all,

I have asked this question previously, but haven't recieved an adequate
answer.
I am wanting to output a datalist ItemIndex in a page.

I know to display a data item i using <%# DataItem("mycolumn")%> and i know
how to append variables.

What i am missing, is how to retrieve a DataLists ItemIndex within a page..
Ie: <%# ?? What goes here in my page to output datalists ItemIndex ??%>

Cheers,
Adam
You can use the DataSetIndex or the ItemIndex in the ItemDataBound event,
or you can develop your own.

For a good article:
http://www.codeproject.com/aspnet/PrettyDatagrids.asp

I hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top