Re: Anyone know what this means? (Updating DataGridView)
- From: Looch <lucianoj2005@xxxxxxxxx>
- Date: Tue, 05 Jun 2007 14:59:00 -0700
On Jun 5, 5:40 pm, "PlatinumBay" <stevan...@xxxxxxxxxxxxxxxx> wrote:
Looch,
Which line is causing the problem? Can you provide a stack trace?
Go to the web.config and set TraceLevel to 4. Using the debug output
viewer and capture the trace output while reproing the problem and that will
spell out exactly what is going on.
Hope this helps,
Steve
"Looch" <lucianoj2...@xxxxxxxxx> wrote in message
news:1181076371.779961.99860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,
Here's the code I'm using:
Dim sqlCnn As New SqlConnection(cnn)
Dim sqlCmd As New SqlCommand("Update AMS.dbo.Call_Log Set
Status = @status, UPSTrack = @ups where TicketNumberActual =
@ticketnumber", sqlCnn)
sqlCmd.Parameters.AddWithValue("@ticketnumber",
SqlDbType.BigInt.ToString())
sqlCmd.Parameters(0).Value =
dgConsumables.Columns("TicketNumberActual")
sqlCmd.Parameters.Add("@status", SqlDbType.NVarChar, 50)
sqlCmd.Parameters(1).Value = dgConsumables.Columns("Status")
sqlCmd.Parameters.Add("@ups", SqlDbType.NVarChar, 50)
sqlCmd.Parameters(2).Value = dgConsumables.Columns("UPSTrack")
sqlCnn.Open()
sqlCmd.ExecuteNonQuery()
sqlCnn.Close()
And I'm getting this error:
No mapping exists from object type
System.Windows.Forms.DataGridViewTextBoxColumn to a known managed
provider native type.
I think it has to do with not specifying the cell's value, but that's
just a guess.
Any idea what that means?
Thanks!- Hide quoted text -
- Show quoted text -
This is a straight vb app, no web.config (unless I'm seriously missing
something, in which I'm shutting off my pc for good :D). The
ExecuteNonQuery line is throwing the error.
.
- References:
- Anyone know what this means? (Updating DataGridView)
- From: Looch
- Re: Anyone know what this means? (Updating DataGridView)
- From: PlatinumBay
- Anyone know what this means? (Updating DataGridView)
- Prev by Date: Instance of a form
- Next by Date: Re: Instance of a form
- Previous by thread: Re: Anyone know what this means? (Updating DataGridView)
- Next by thread: Re: Anyone know what this means? (Updating DataGridView)
- Index(es):
Relevant Pages
|