Datagrid Question

G

Guest

Hi Guys,

I have a datagrid bound to a database table. Is there any way i cam find out
if it is the first row or last row in the itemdatabound event?

If not is there any alternate way to do so? i have two images and i need to
control the visibility depending on if it is first row or the last row.

Thanks

manny
 
E

Eliyahu Goldin

manny,

Do it in the PreRender event. myGrid.Items[0] is you first row.
myGrid.Items[myGrid.Items.Count-1] is your last row.

Eliyahu
 

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,780
Messages
2,569,611
Members
45,276
Latest member
Sawatmakal

Latest Threads

Top