I need the row value (.Rows(0)) to increment by one each time this function is called. Unfortunately, I am new to programming and I can't figure out how to do this. Would greatly appreciate any assistance (w/example code, if possible). DataGrid code that is
calling the function:
More
The Function that is being called by the HyperLink object withinn the DataGrid:
Public Function SetEventDescription(ByVal Event_Description As Object) As String
Dim EventDescription As String
EventDescription = DS.Tables("CalendarofEvents").Rows(0)("Event_Description").ToString()
Return EventDescription
End Function
Tyler_W
Member
167 Points
33 Posts
Calling a Function from a DataGrid
Aug 01, 2003 08:54 PM|LINK
Public Function SetEventDescription(ByVal Event_Description As Object) As String Dim EventDescription As String EventDescription = DS.Tables("CalendarofEvents").Rows(0)("Event_Description").ToString() Return EventDescription End FunctionTW