Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 255
  • Last Modified:

set itemdatabound event

sub setUp(byRef myDG as DataGrid)        
   myDG = new DataGrid()
   dim bc as BoundColumn
   myDG.AutoGenerateColumns = false
   myDG.CssClass = "dgStyle"
   myDG.ItemDataBound = writeFooter  *****

This line gives me the following error

'Public Event ItemDataBound(sender As Object, e As System.Web.UI.WebControls.DataGridItemEventArgs)' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event.

How do I create a RaiseEvent statement?
0
ARACK04
Asked:
ARACK04
1 Solution
 
laotzi2000Commented:
addhandler mydg.itemdatabound, addressof writefooter
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now