Click here to Skip to main content
15,884,388 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionDatagrid - Refresh Pin
Larry White8-Jan-07 11:19
Larry White8-Jan-07 11:19 
AnswerRe: Datagrid - Refresh Pin
Christian Graus8-Jan-07 12:49
protectorChristian Graus8-Jan-07 12:49 
GeneralRe: Datagrid - Refresh Pin
Larry White9-Jan-07 4:53
Larry White9-Jan-07 4:53 
QuestionMDI Forms Pin
Jason Timothy Holland8-Jan-07 10:01
Jason Timothy Holland8-Jan-07 10:01 
AnswerRe: MDI Forms Pin
Dave Kreskowiak8-Jan-07 10:09
mveDave Kreskowiak8-Jan-07 10:09 
QuestionEncrypt File using User Supplied Password Pin
hkinser98-Jan-07 9:57
hkinser98-Jan-07 9:57 
QuestionPrinting landscape pages not working Pin
Knoen8-Jan-07 9:39
Knoen8-Jan-07 9:39 
QuestionDataGridView.Columns.AddRange Pin
kindman_nb8-Jan-07 9:10
kindman_nb8-Jan-07 9:10 
Hi ,
I'm using vb.net 2005 , the next code to view some fields on DataGridView Contrl ,

rivate Sub AddCol()

DataGridView.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Col1, Col, Col, Col})

Me.Col1.DataPropertyName = "Field1"
Me.Col1.HeaderText = "Col1"
Me.Col1.Name = "Col1"
Me.Col1.Width = 40

Me.Col2.DataPropertyName = "Field2"
Me.Col2.HeaderText = "Col2"
Me.Col2.Name = "Col2"
Me.Col2.Width = 40

Me.Col3.DataPropertyName = "Field3"
Me.Col3.HeaderText = "Col3"
Me.Col3.Name = "Col3"
Me.Col3.Width = 40

Me.Col4.DataPropertyName = "Field4"
Me.Col4.HeaderText = "Col4"
Me.Col4.Name = "Col4"
Me.Col4.Width = 40

End Sub

when i reuse the same sub again then I get a new order of cols ,,

it's a strange ! I user the same code

I will give Rose | [Rose] Rose | [Rose] Rose | [Rose] for any one help me



jooooo

AnswerRe: DataGridView.Columns.AddRange Pin
Dave Kreskowiak8-Jan-07 9:20
mveDave Kreskowiak8-Jan-07 9:20 
GeneralRe: DataGridView.Columns.AddRange Pin
kindman_nb8-Jan-07 10:39
kindman_nb8-Jan-07 10:39 
GeneralRe: DataGridView.Columns.AddRange Pin
Dave Kreskowiak9-Jan-07 2:53
mveDave Kreskowiak9-Jan-07 2:53 
GeneralRe: DataGridView.Columns.AddRange Pin
kindman_nb9-Jan-07 7:25
kindman_nb9-Jan-07 7:25 
QuestionShared Printer (send it a string) Pin
oogyboogyme8-Jan-07 9:02
oogyboogyme8-Jan-07 9:02 
AnswerRe: Shared Printer (send it a string) Pin
Dave Kreskowiak8-Jan-07 9:17
mveDave Kreskowiak8-Jan-07 9:17 
QuestionImage Comparision Pin
ParticleBoy8-Jan-07 8:11
ParticleBoy8-Jan-07 8:11 
AnswerRe: Image Comparision Pin
Christian Graus8-Jan-07 9:13
protectorChristian Graus8-Jan-07 9:13 
QuestionDatabase Error Pin
Karma312518-Jan-07 8:06
Karma312518-Jan-07 8:06 
AnswerRe: Database Error Pin
Dave Kreskowiak8-Jan-07 9:13
mveDave Kreskowiak8-Jan-07 9:13 
GeneralRe: Database Error Pin
Karma312519-Jan-07 4:02
Karma312519-Jan-07 4:02 
GeneralRe: Database Error Pin
Dave Kreskowiak9-Jan-07 12:32
mveDave Kreskowiak9-Jan-07 12:32 
QuestionMDI Forms Pin
Jason Holland8-Jan-07 7:44
Jason Holland8-Jan-07 7:44 
AnswerRe: MDI Forms Pin
nlarson118-Jan-07 8:02
nlarson118-Jan-07 8:02 
QuestionMDI Forms Pin
Jason Holland8-Jan-07 7:44
Jason Holland8-Jan-07 7:44 
AnswerRe: MDI Forms Pin
Dave Kreskowiak8-Jan-07 9:10
mveDave Kreskowiak8-Jan-07 9:10 
QuestionImplementing Implements System.IDisposable Pin
Marcus J. Smith8-Jan-07 7:24
professionalMarcus J. Smith8-Jan-07 7:24 

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.