Click here to Skip to main content
15,913,941 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: ambiuous namespace Pin
Dave Kreskowiak3-Oct-08 1:42
mveDave Kreskowiak3-Oct-08 1:42 
QuestionHow to read and write Encrypted file by vb 6.0 Pin
ejaz_pk2-Oct-08 10:50
ejaz_pk2-Oct-08 10:50 
QuestionPostponing Close until all application windows are closed Pin
JudyV2-Oct-08 5:37
JudyV2-Oct-08 5:37 
AnswerRe: Postponing Close until all application windows are closed Pin
jzonthemtn2-Oct-08 5:58
jzonthemtn2-Oct-08 5:58 
GeneralRe: Postponing Close until all application windows are closed Pin
JudyV2-Oct-08 6:08
JudyV2-Oct-08 6:08 
QuestionHow Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 3:04
RaltonLewis2-Oct-08 3:04 
QuestionRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 3:42
richardw482-Oct-08 3:42 
AnswerRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 3:55
RaltonLewis2-Oct-08 3:55 
I am using VB.Net 2008 with an access database and i am using a TableAdapter to fill the datagrid.
I am new to vb and do not now how to code for this. What i do have so far is that my program is working fine loading the datagridview from a single table. To link to the sub tables and add a column for every row of the sub table is my problem - i do not know how to code it. Here is my code so far:

' Iniatilize Connection
cn = New System.Data.OleDb.OleDbConnection( _
"provider=Microsoft.Jet.OLEDB.4.0; " & _
"data source= " & Directory.GetCurrentDirectory & "\XXXDatabase.mdb")

'Populate Members DataGrid
da = New System.Data.OleDb.OleDbDataAdapter("SELECT * FROM XXXDetails", cn)
ds = New System.Data.DataSet
da.Fill(ds)
DataGridView1.DataSource = ds.Tables(0)
cn.Close()
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 4:12
richardw482-Oct-08 4:12 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 4:26
RaltonLewis2-Oct-08 4:26 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 4:44
richardw482-Oct-08 4:44 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 4:59
richardw482-Oct-08 4:59 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 7:11
RaltonLewis2-Oct-08 7:11 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 9:02
richardw482-Oct-08 9:02 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
RaltonLewis2-Oct-08 10:19
RaltonLewis2-Oct-08 10:19 
GeneralRe: How Do I Add A New Column For Each Record From Table To Existing DatagridView Pin
richardw482-Oct-08 22:06
richardw482-Oct-08 22:06 
Questionopen window using vb Pin
jhyn2-Oct-08 2:07
jhyn2-Oct-08 2:07 
AnswerCheck this CodeProject article Pin
David Mujica2-Oct-08 3:04
David Mujica2-Oct-08 3:04 
QuestionRe: open window using vb Pin
richardw482-Oct-08 3:45
richardw482-Oct-08 3:45 
AnswerRe: open window using vb Pin
jhyn2-Oct-08 15:50
jhyn2-Oct-08 15:50 
QuestionRe: open window using vb Pin
richardw482-Oct-08 22:11
richardw482-Oct-08 22:11 
QuestionVS 2008 Express - need to create a setup package Pin
Anoop Brijmohun2-Oct-08 0:22
Anoop Brijmohun2-Oct-08 0:22 
AnswerRe: VS 2008 Express - need to create a setup package Pin
Johan Hakkesteegt2-Oct-08 1:47
Johan Hakkesteegt2-Oct-08 1:47 
AnswerRe: VS 2008 Express - need to create a setup package Pin
jzonthemtn2-Oct-08 6:01
jzonthemtn2-Oct-08 6:01 
GeneralRe: VS 2008 Express - need to create a setup package Pin
Paul Conrad2-Oct-08 9:35
professionalPaul Conrad2-Oct-08 9:35 

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.