IE Multipage and TabStrip Help...

K

Kiran B.

Hi, I have managed to popluate a datagrid in multipage pageview control. My
problem is I need to use ItemDatabound Event and it's not working or should
i say, i don't know how it works with the datagrid that is associated with
pageview.

My code looks like...


Private Sub BindGrid(ByVal custMode As String, _

ByVal ds As DataSet)

Dim dview As DataView

Dim dg As DataGrid = New DataGrid()

Dim lbl As Label

dview = CreateDataSet(custMode, ds)

If Not dview Is Nothing Then

If custMode = "N" Then

'With dgdNewCustomers

' .DataSource = dview

' .DataBind()

'End With

lbl = myReturnMultiPage.FindControl("lblNew")

dg = myReturnMultiPage.FindControl("dgdMyNewOrders")

dg.DataSource = dview

dg.DataBind()

lbl.Text = "Return Orders " & dview.Count

'lblTotalNewOrders.Text = "New Orders " & dview.Count

Else

'With dgdReturnCustomers

''.DataSource = dview

'.DataBind()

'End With

lbl = myReturnMultiPage.FindControl("lblReturn")

dg = myReturnMultiPage.FindControl("dgdMyReturnOrders")

dg.DataSource = dview

dg.DataBind()

lbl.Text = "Return Orders " & dview.Count

'lblTotalReturnOrders.Text = "Return Orders " & dview.Count

End If

dview.Dispose()

End If

End Sub



Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top