Click here to Skip to main content
16,008,490 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: My own equalizer Pin
Dave Kreskowiak13-Jul-07 2:41
mveDave Kreskowiak13-Jul-07 2:41 
Questiondisable back and forward button Pin
Ashish Kumar Vyas12-Jul-07 18:49
Ashish Kumar Vyas12-Jul-07 18:49 
AnswerRe: disable back and forward button Pin
Sathesh Sakthivel12-Jul-07 19:18
Sathesh Sakthivel12-Jul-07 19:18 
GeneralRe: disable back and forward button Pin
Dave Kreskowiak13-Jul-07 2:38
mveDave Kreskowiak13-Jul-07 2:38 
AnswerRe: disable back and forward button Pin
RepliCrux12-Jul-07 20:06
RepliCrux12-Jul-07 20:06 
GeneralRe: disable back and forward button Pin
Ashish Kumar Vyas12-Jul-07 23:37
Ashish Kumar Vyas12-Jul-07 23:37 
GeneralRe: disable back and forward button Pin
Vasudevan Deepak Kumar13-Jul-07 0:06
Vasudevan Deepak Kumar13-Jul-07 0:06 
Questionerror when commiting the row to the original data store(urgent) Pin
cutequencher12-Jul-07 16:49
cutequencher12-Jul-07 16:49 
i am having this error when i am about to delete a data row

inline with this is a message box saying:
object reference not set to an instance of an object. do you want to correct the value?

if i click yes, it will delete the row if no it will ignore the deletion

i've already checked all of my declarations and pretty sure that i've declared everything right.

here's my code:

Private Sub delCol_ButtonColumnClick(ByVal sender As Object, ByVal e As Leadit.ExtendedDataGrid.ButtonColumnEventArgs) Handles delCol.ButtonColumnClick
Dim row As Integer
Dim hourdiffBtn As Integer
Dim sBtn As DateTime
Dim eBtn As DateTime
Dim res As MsgBoxResult
row = Me.dtgCustomSched.CurrentRowIndex
res = MsgBox("Are you sure you want to delete the schedule on " + Me.dtgCustomSched.Item(row, 0), MsgBoxStyle.YesNo)
If res = MsgBoxResult.Yes Then
sBtn = Date.Parse(Me.dtgCustomSched.Item(row, 1))
eBtn = Date.Parse(Me.dtgCustomSched.Item(row, 2))
hourdiffBtn = getHrValue(sBtn, eBtn)
lastRowNumber = lastRowNumber - 1
Me.remainingHour2 = Me.remainingHour2 + hourdiffBtn
Me.txtLookUpHours.Text = remainingHour2.ToString
addSchedule.Table("ttcpcustomizedschedule").Rows.RemoveAt(row)

Else
Exit Sub
End If
End Sub


dtgcustomsched is the name of my datagrid
addsched is the name of the dataset

i made one of the datagrid cell as a customized button.. it already work fine with my other codes.. the problem only occur here

the error occurs on the line in bold.

also, this error only appears when i delete the last row on the datagrid, but if i delete anything rather than the last row everything works fine and no error is being detected

please help. thanx!

i am using vb.net 2002
AnswerRe: error when commiting the row to the original data store(urgent) Pin
Christian Graus12-Jul-07 17:09
protectorChristian Graus12-Jul-07 17:09 
GeneralRe: error when commiting the row to the original data store(urgent) Pin
cutequencher12-Jul-07 17:50
cutequencher12-Jul-07 17:50 
QuestionToggle Button in ToolStrip Pin
MadmanWoo12-Jul-07 13:13
MadmanWoo12-Jul-07 13:13 
AnswerRe: Toggle Button in ToolStrip Pin
Paul Conrad13-Jul-07 12:25
professionalPaul Conrad13-Jul-07 12:25 
Questionforce a right click Pin
Cory Kimble12-Jul-07 10:58
Cory Kimble12-Jul-07 10:58 
AnswerRe: force a right click Pin
cutequencher12-Jul-07 16:53
cutequencher12-Jul-07 16:53 
AnswerRe: force a right click Pin
Dave Kreskowiak13-Jul-07 2:35
mveDave Kreskowiak13-Jul-07 2:35 
GeneralRe: force a right click Pin
Cory Kimble13-Jul-07 3:14
Cory Kimble13-Jul-07 3:14 
GeneralRe: force a right click Pin
Dave Kreskowiak13-Jul-07 15:32
mveDave Kreskowiak13-Jul-07 15:32 
Questionweird problem Pin
boyindie12-Jul-07 8:08
boyindie12-Jul-07 8:08 
AnswerRe: weird problem Pin
Paul Conrad12-Jul-07 8:36
professionalPaul Conrad12-Jul-07 8:36 
GeneralRe: weird problem Pin
boyindie12-Jul-07 8:41
boyindie12-Jul-07 8:41 
GeneralRe: weird problem Pin
Paul Conrad12-Jul-07 8:48
professionalPaul Conrad12-Jul-07 8:48 
GeneralRe: weird problem Pin
Dave Kreskowiak12-Jul-07 8:53
mveDave Kreskowiak12-Jul-07 8:53 
GeneralRe: weird problem Pin
boyindie12-Jul-07 8:56
boyindie12-Jul-07 8:56 
GeneralRe: weird problem Pin
Paul Conrad12-Jul-07 9:00
professionalPaul Conrad12-Jul-07 9:00 
GeneralRe: weird problem Pin
boyindie12-Jul-07 9:01
boyindie12-Jul-07 9:01 

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.