OnItemDataBound event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

the OnItemDataBound event is called on initialisation of each row in the grid
how can i stop this event when loading the grid for the first time?
 
Mary,

If you stop this event your grid won't load...

Are you sure that's what you want to do?

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
If what you actually want to do is allow the grid to bind, but then only run
certain code within the OnItemDatabound event on post back put:

If IsPostBack Then
'---Your OnItemDatabound code
End If

around the code you are putting into the method.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
what i want is to run OnItemDatabound only for the row i am using coz if i
have 100 row in the grid the condition will be tested 100 times and this
takes time
Any other suggestions?
 

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