adding eventhandels to gridview programmatically

i have created a gridview programmatically but was unable to add OnRowCreated events to it . any help on domain this. i have this code

 

dg = New GridView

dg.DataSource = result

dg.AutoGenerateColumns = False

Dim bcol1 As BoundField = New BoundField

bcol1.HeaderText = " "

bcol1.DataField = "EmployeeID"

dg.Columns.Add(bcol1)

— this is not working —– 

 dg.Attributes.Add("OnRowCreated", function_Name)


Read More

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s