Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling OnItemDataBound without Databind

Status
Not open for further replies.

vituja123

Programmer
Jun 16, 2005
110
0
0
US
Is there a way to call the OnItemDataBound routine without performing a databind?

My OnItemDataBound routine is called LoadItemData(ByVal sender As Object, ByVal e As DataGridItemEventArgs)

There is some logic in there that needs to be done but I don't want the data values to be loaded from the db using a databind.

What is SENDER and E looking for?
LoadItemData(DatagridName, ???)

Any info would be helpful. Thanks.
 
If you've got functionality in a function that needs to be called from several places, then your best bet would be to seperate it out into a different function (as any function can then call on it).


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Answer 1: No, the ItemDataBound event triggers for each row when the data is being bound to the grid.



How are you going to populate the grid?
 
It's kind of starnge what the itembound routine does. am forced to split a text box into 2 textboxes when a certain condition is met.

That code exists in the itembound routine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top