TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Don To
NA
5
0
ItemCreated of Datagrid using vb
Jul 3 2007 3:01 PM
Could someone please help?
I have a datagrid and inside it, i have a button. I also create "ItemCreated" below for this button inside the datagrid. But when i debug the application, i see this "ItemCreated" function run so many time over and over again. What should i do? I only want it run once when I click on the button inside the datagrid. Where should i put this function? I really appreciate your help.
Sub
dgProgram_ItemCreated(
ByVal
sender
As
Object
,
ByVal
e
As
DataGridItemEventArgs)
Handles
dgProgram.ItemCreated
If
e.Item.ItemType = ListItemType.Item
OrElse
e.Item.ItemType = ListItemType.AlternatingItem
Then
Me
.program.Value = e.Item.Cells(1).Text
Dim
btn
As
Button
btn = e.Item.Cells(14).Controls(0)
'btn.Attributes.Add("onclick", "return testing();")
End
If
End sub
Reply
Answers (
1
)
Audio/Video player - URGENT
Setting Datasource property of mdb Database location or path automatically without using App.config File