Click here to Skip to main content
15,894,343 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionInternship Management System Pin
Member 112919486-Dec-14 22:37
Member 112919486-Dec-14 22:37 
Questiondatagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh12-Nov-14 11:06
Rhyde Marsh12-Nov-14 11:06 
this i my first post, so i hope i am explaining it correctly, have a datagridview with a textboxcolumn. it is bind to a dataset

my problem is when i update a record wiht more that 350 characters it give me a nullrefference error. the database is updated when i check the physical record but the application crash

here is the function

Private Sub m_maintenanceProcessor_WebsiteUpdated(ByVal sender As Object, ByVal e As Processors.EventArgs) Handles m_maintenanceProcessor.WebsiteUpdated
Dim tempTable As MaintenanceDataSet.WebsitePageDownloadDataTable

Try
If e.Data.Contains("ModifiedRows") = False Then Exit Sub
tempTable = CType(e.Data("ModifiedRows"), MaintenanceDataSet.WebsitePageDownloadDataTable)
If tempTable.Rows.Count > 0 Then
RemoveHandler maintenanceDataGridView.RowValidated, AddressOf maintenanceDataGridView_RowValidated
Processor.Data.WebsitePageDownload.LoadingTable = True
Processor.Data.WebsitePageDownload.Merge(tempTable, False)
Processor.Data.WebsitePageDownload.LoadingTable = False
Processor.Data.WebsitePageDownload.RejectChanges()
AddHandler maintenanceDataGridView.RowValidated, AddressOf maintenanceDataGridView_RowValidated


Processor.Data.WebsitePageDownload.Merge(tempTable)

'For Each row As DataRow In tempTable.Rows
' If row.RowError IsNot Nothing AndAlso row.RowError.Length > 0 Then
' MsgBox(row.RowError)
' End If

' ' MsgBox(row("URL").ToString)

'Next

'MsgBox(Processor.Data.WebsitePageDownload.Columns("defaultstatusid").MaxLength)
Processor.Data.WebsitePageDownload.AcceptChanges()
End If
Catch ex As Exception
MsgBox(ex.Message.ToString)
End Try
tempTable = Nothing

Me.StatusMessage = String.Empty

End Sub


error gets thrown on acceptchanges
QuestionRe: datagridviewtextboxcell error on 350 characters Pin
Richard MacCutchan12-Nov-14 21:26
mveRichard MacCutchan12-Nov-14 21:26 
AnswerRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh13-Nov-14 3:39
Rhyde Marsh13-Nov-14 3:39 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Richard MacCutchan13-Nov-14 4:26
mveRichard MacCutchan13-Nov-14 4:26 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh13-Nov-14 5:25
Rhyde Marsh13-Nov-14 5:25 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Richard MacCutchan13-Nov-14 5:38
mveRichard MacCutchan13-Nov-14 5:38 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh14-Nov-14 1:27
Rhyde Marsh14-Nov-14 1:27 
QuestionRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen13-Nov-14 5:38
professionalEddy Vluggen13-Nov-14 5:38 
AnswerRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh18-Nov-14 5:36
Rhyde Marsh18-Nov-14 5:36 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen18-Nov-14 5:50
professionalEddy Vluggen18-Nov-14 5:50 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh18-Nov-14 8:33
Rhyde Marsh18-Nov-14 8:33 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen18-Nov-14 10:23
professionalEddy Vluggen18-Nov-14 10:23 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh19-Nov-14 3:11
Rhyde Marsh19-Nov-14 3:11 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen19-Nov-14 5:15
professionalEddy Vluggen19-Nov-14 5:15 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh21-Nov-14 11:19
Rhyde Marsh21-Nov-14 11:19 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen22-Nov-14 3:55
professionalEddy Vluggen22-Nov-14 3:55 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh24-Nov-14 2:36
Rhyde Marsh24-Nov-14 2:36 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Eddy Vluggen24-Nov-14 3:38
professionalEddy Vluggen24-Nov-14 3:38 
GeneralRe: datagridviewtextboxcell error on 350 characters Pin
Rhyde Marsh10-Dec-14 3:44
Rhyde Marsh10-Dec-14 3:44 
QuestionChart Control Legend Item Ordering Pin
Member 998046316-Oct-14 2:40
Member 998046316-Oct-14 2:40 
AnswerRe: Chart Control Legend Item Ordering Pin
jkirkerx17-Nov-14 13:38
professionaljkirkerx17-Nov-14 13:38 
Questioninfragistics numeric editor+ alllow user to input the value max Pin
srinandan..16-Sep-14 21:00
srinandan..16-Sep-14 21:00 
AnswerRe: infragistics numeric editor+ alllow user to input the value max Pin
Eddy Vluggen19-Sep-14 8:19
professionalEddy Vluggen19-Sep-14 8:19 
Questionsearch or filter treenode display based on text input from user Pin
Member 110597994-Sep-14 13:27
Member 110597994-Sep-14 13:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.