Posted on: 8/21/2013 10:57:44 PM | Views : 816

I created a class in my VB code behind that gets values from one gridview (list of workorders) and makes it so when applicaple they can be placed in another gridview (schedule)
I was able to assign the work orders to a variable using a class I created but if two workorders have the name shop ID and Day of the week ID I need to beable to concatentate them into one string because I can only write one value to any one cell in the other gridview...
Here is the applicable code from the aspx.vb file. Note that the shop() array created by getting the shop IDs from gridview1.
Public Class WorkOrder Public name As Integer Public woday As Integer Public woshop As Integer Public wonum As Integer End Class Dim testing As New WorkOrder For Each dr As GridViewRow In GridView2.Rows testing.name = "testing" & dr.RowIndex testing.woday = dr.Cells(6).Text testing.woshop = dr.Cells(7).Text test ...

Go to the complete details ...