View Single Post
  #4 (permalink)  
Old April 4th, 2006, 10:45 PM
Hadware Hadware is offline
Registered User
Join Date: Nov 2003
Location: Canton, OH, USA.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Hadware Send a message via Yahoo to Hadware

Here's what I have so far...
    Sub DataList_EditCommand(ByVal sender As Object, ByVal e As DataListCommandEventArgs)
        DataList1.EditItemIndex = e.Item.ItemIndex
        Dim thegrid As DataGrid
        Dim intID As Integer
        intID = DataList1.DataKeys(e.Item.ItemIndex)
        thegrid = CType(e.Item.FindControl("DataGrid1"), DataGrid)
        Dim queryString As String = "displayadscreditsearnedfrom " & intID
        Dim cmd As New SqlCommand(queryString, connect)

        Dim dataAdapter As SqlDataAdapter = New SqlDataAdapter(cmd)
        Dim data As DataSet = New DataSet
        thegrid.DataSource = data
    End Sub

It tells me I cannot convert to double.