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

Similar Threads

Datagrid Question 1
datagrid & css 1
datagrid 1
DataGrid, ItemDataBound 1
Odd Datagrid Behavior 1
datagrid 3
Data 1
Finding the delete button in a datagrid 2

Top