x,y position on datagrid

  • Thread starter Thread starter societopia.net
  • Start date Start date
S

societopia.net

The itemDataBound is raised after an item is data bound to the grid. The
item is a row (not a single column). The event passes an object e as
DataGridItemEventArgs. Use e.Item.ItemIndex to bring the row index and use
the e.Cells collection to access the columns of that row (item). I have a
sample where I use this event on my website
http://www.societopia.net/Samples/webform2.aspx
 
Hello,
I am using datagrid.
For its event : ItemDataBound,
I want to know of each iteration this method is called,
what is the current column & row ?

Thanks :)
 
Just note that in most cases you can use also PreRender event in which the
grid is already fully built and you can just loop through the items.

Eliyahu
 
Eliyahu Goldin said:
Just note that in most cases you can use also PreRender event in which the
grid is already fully built and you can just loop through the items.

Eliyahu
About PreRender event - I need some help, please.
What's is PreRender ?
What's the different between PreRender and PageLoad ?

Thanks :)
 
PageLoad runs in the beginning. PreRender is your last chance to do anything
with the page, just before the resulting html gets send to the client.

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

Back
Top