Click here to Skip to main content
15,920,468 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Using event in vbnet Pin
Dave Kreskowiak17-Jun-10 1:32
mveDave Kreskowiak17-Jun-10 1:32 
QuestionPdf Reader Pin
sarathy5615-Jun-10 23:04
sarathy5615-Jun-10 23:04 
AnswerRe: Pdf Reader Pin
Scubapro16-Jun-10 0:54
Scubapro16-Jun-10 0:54 
Questioni want to convert StrPtr to vb.net Pin
buffering8315-Jun-10 22:19
buffering8315-Jun-10 22:19 
AnswerRe: i want to convert StrPtr to vb.net Pin
DaveAuld15-Jun-10 22:29
professionalDaveAuld15-Jun-10 22:29 
QuestionInserted row in unbound datagridview Pin
C#Coudou15-Jun-10 13:54
C#Coudou15-Jun-10 13:54 
AnswerRe: Inserted row in unbound datagridview Pin
Wayne Gaylard15-Jun-10 15:41
professionalWayne Gaylard15-Jun-10 15:41 
GeneralRe: Inserted row in unbound datagridview Pin
C#Coudou15-Jun-10 15:55
C#Coudou15-Jun-10 15:55 
Heres the code for inserting a new row, it will insert in the middle of two rows, it just NOT insert at the last. it will insert any row you want.
then recount the sequence no.

Private Sub btnInsRow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnInsRow.Click

       Dim posRow, seq As Integer
       Dim iRow As Integer
       Dim dRow As DataRow = dttable.NewRow

       Try

           If Me.C1tdbgridAnalyze.RowCount <> 0 Then

               If Me.C1tdbgridAnalyze.Item(Me.C1tdbgridAnalyze.Row, 4) < 96 Then

                   With Me.C1tdbgridAnalyze
                       dRow("OrderNo") = .Item(.Row, 0)
                       dRow("ItemNo") = .Item(.Row, 1)

              If .Row = 0 Then
                           posRow = .Row
                           dRow("SeqNo") = .Item(.Row, 4)
                           seq = dRow("SeqNo")
                       Else
                           posRow = .Row + 1
                           dRow("SeqNo") = .Item(.Row, 4) + 1
                           seq = dRow("SeqNo")
                       End If
                       dttable.Rows.InsertAt(dRow, posRow)
                       .Row = posRow
                       .DirectionAfterEnter = C1.Win.C1TrueDBGrid.DirectionAfterEnterEnum.MoveDown
                       .Col = 0
                       .Select()

                       iRow = seq
                       For seqRow As Integer = 0 To .RowCount
                           If seqRow >= posRow Then
                               If .Item(seqRow, 4) <> Nothing Then
                                   .Item(seqRow, 4) = iRow
                               End If
                               iRow += 1
                           End If
                       Next
                   End With
               End If
           End If
       Catch ex As Exception
           log.Debug(ex.ToString)
           Throw ex
       End Try
   End Sub

C# コードMicrosoft End User
2000-2008




「「「「「「「「「「「「「「「「「「「「「「「「「「「「
The best things in life are free
」」」」」」」」」」」」」」」」」」」」」」」」」」」」


GeneralRe: Inserted row in unbound datagridview Pin
DaveAuld15-Jun-10 22:15
professionalDaveAuld15-Jun-10 22:15 
GeneralRe: Inserted row in unbound datagridview Pin
C#Coudou16-Jun-10 13:58
C#Coudou16-Jun-10 13:58 
QuestionBuild Error Pin
shereen_shf15-Jun-10 10:27
shereen_shf15-Jun-10 10:27 
AnswerRe: Build Error Pin
DaveAuld15-Jun-10 10:30
professionalDaveAuld15-Jun-10 10:30 
GeneralRe: Build Error Pin
shereen_shf15-Jun-10 10:42
shereen_shf15-Jun-10 10:42 
GeneralRe: Build Error Pin
Luc Pattyn15-Jun-10 12:43
sitebuilderLuc Pattyn15-Jun-10 12:43 
AnswerRe: Build Error Pin
AnnieMacD16-Jun-10 3:30
AnnieMacD16-Jun-10 3:30 
AnswerRe: Build Error Pin
AlmightyEdge16-Jun-10 10:38
AlmightyEdge16-Jun-10 10:38 
QuestionOverlapping screens Pin
yera200215-Jun-10 7:07
yera200215-Jun-10 7:07 
AnswerRe: Overlapping screens Pin
Luc Pattyn15-Jun-10 7:26
sitebuilderLuc Pattyn15-Jun-10 7:26 
GeneralRe: Overlapping screens Pin
Wayne Gaylard15-Jun-10 15:45
professionalWayne Gaylard15-Jun-10 15:45 
GeneralRe: Overlapping screens Pin
Luc Pattyn15-Jun-10 16:06
sitebuilderLuc Pattyn15-Jun-10 16:06 
AnswerRe: Overlapping screens Pin
programmervb.netc++15-Jun-10 19:29
programmervb.netc++15-Jun-10 19:29 
QuestionMaskedTextBox -Date Problem() Pin
Paramu197315-Jun-10 5:00
Paramu197315-Jun-10 5:00 
AnswerRe: MaskedTextBox -Date Problem() Pin
Henry Minute15-Jun-10 6:33
Henry Minute15-Jun-10 6:33 
AnswerRe: MaskedTextBox -Date Problem() Pin
Geoff Williams15-Jun-10 7:09
Geoff Williams15-Jun-10 7:09 
AnswerRe: MaskedTextBox -Date Problem() Pin
Luc Pattyn15-Jun-10 8:03
sitebuilderLuc Pattyn15-Jun-10 8:03 

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.