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

Visual Basic

 
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 
GeneralRe: Inserted row in unbound datagridview Pin
DaveAuld15-Jun-10 22:15
professionalDaveAuld15-Jun-10 22:15 
C#Coudou wrote:
Me.C1tdbgridAnalyze.RowCount <> 0


I would personally not check for 0 rows, but test for less than or equal to 0 ie <=0

C#Coudou wrote:
For seqRow As Integer = 0 To .RowCount


Will .RowCount not exceed the bounds for a 0 based collection, should it not be .RowCount - 1

You are more than just interacting with a unbound datagrid here, should you not first start with the insert operation and then update the other controls. e.g. dttable, c1tbdgridAnalyze


C#Coudou wrote:
posRow = .Row + 1

You then try to insert at position posRow, this is outwith the bounds of the rows collection as this position does not insert exist, if you are on the last row, do you not need to use an AddRow method (not sure exactly which type of control you are using. are you using a standard System.Windows.Forms.DataGridView?

A standard DGV has both an Rows.Add() and a Rows.Insert(position) method for working with the rows collection.
Dave

Don't forget to rate messages!
Find Me On: Web|Facebook|Twitter|LinkedIn
Waving? dave.m.auld[at]googlewave.com


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 
QuestionComboboxes and commas Pin
Rich Leyshon15-Jun-10 0:04
Rich Leyshon15-Jun-10 0:04 

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.