Click here to Skip to main content
15,916,042 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPutting a dataabase table column value into a variable Pin
AAGTHosting25-Jan-08 16:37
AAGTHosting25-Jan-08 16:37 
GeneralRe: Putting a dataabase table column value into a variable Pin
Andy_L_J26-Jan-08 12:30
Andy_L_J26-Jan-08 12:30 
Generalusing tcpclint Pin
Agbaria Ahmad25-Jan-08 12:15
Agbaria Ahmad25-Jan-08 12:15 
Questioneffective designing Pin
Agbaria Ahmad25-Jan-08 11:54
Agbaria Ahmad25-Jan-08 11:54 
GeneralRe: effective designing Pin
Christian Graus25-Jan-08 12:41
protectorChristian Graus25-Jan-08 12:41 
GeneralRe: effective designing Pin
darkelv26-Jan-08 2:55
darkelv26-Jan-08 2:55 
QuestionWindows Installer CustomActionData parameters Pin
mrgubbels25-Jan-08 11:43
mrgubbels25-Jan-08 11:43 
GeneralDisplaying Rows from a DataTable in a DataGrid Pin
AAGTHosting25-Jan-08 7:35
AAGTHosting25-Jan-08 7:35 
I am creating columns in a dataGrid. I know that I can loop through each row using a for each loop, but how do I make sure that the data from each row is in each column. Can someone tell me whether this will work.

The column ts_day stores each day of the week. So, the column will display Monday, then Tuesday, etc.


' This is the line of code that puts each row from the database in the column.<br />
     lpDataSet.Tables(0).Columns.Add(New DataColum("lpDataSet.tbl_teach_sched.ts_dayColumn", GetType(String)))



<br />
' populate the data tables<br />
dtTeachSched = lpDataSet.Tables("tbl_teach_sched")<br />
<br />
' create the data columns<br />
lpDataSet.Tables(0).Columns.Add(New DataColumn("Time", GetType(String))<br />
<br />
For Each row In dtTeachSched.Rows<br />
     ' This is the line of code that puts each row from the database in the column.<br />
     lpDataSet.Tables(0).Columns.Add(New DataColum("lpDataSet.tbl_teach_sched.ts_dayColumn", GetType(String)))<br />
     lpDataSet.Tables(0).Columns.Add(New DataColumn("Notes", GetType(String)))<br />
     lpDataSet.Tables(0).Columns.Add(New DataColumn("Weeks", GetType(String)))<br />
        Next

GeneralRe: Displaying Rows from a DataTable in a DataGrid Pin
Kschuler25-Jan-08 8:11
Kschuler25-Jan-08 8:11 
GeneralRe: Displaying Rows from a DataTable in a DataGrid Pin
AAGTHosting25-Jan-08 10:05
AAGTHosting25-Jan-08 10:05 
GeneralRe: Displaying Rows from a DataTable in a DataGrid Pin
Kschuler25-Jan-08 11:07
Kschuler25-Jan-08 11:07 
GeneralRe: Displaying Rows from a DataTable in a DataGrid Pin
AAGTHosting25-Jan-08 14:08
AAGTHosting25-Jan-08 14:08 
GeneralRe: Displaying Rows from a DataTable in a DataGrid Pin
Kschuler28-Jan-08 3:25
Kschuler28-Jan-08 3:25 
GeneralDoes any one know what i have done wrong Pin
solarthur0125-Jan-08 6:04
solarthur0125-Jan-08 6:04 
GeneralRe: Does any one know what i have done wrong Pin
Paul Conrad25-Jan-08 7:24
professionalPaul Conrad25-Jan-08 7:24 
GeneralRe: Does any one know what i have done wrong Pin
solarthur0125-Jan-08 7:45
solarthur0125-Jan-08 7:45 
GeneralRe: Does any one know what i have done wrong Pin
Paul Conrad25-Jan-08 7:48
professionalPaul Conrad25-Jan-08 7:48 
GeneralRe: Does any one know what i have done wrong Pin
solarthur0125-Jan-08 7:50
solarthur0125-Jan-08 7:50 
GeneralRe: Does any one know what i have done wrong Pin
Christian Graus25-Jan-08 12:42
protectorChristian Graus25-Jan-08 12:42 
QuestionHow to read text present on a image Pin
harivinod25-Jan-08 2:39
harivinod25-Jan-08 2:39 
AnswerRe: How to read text present on a image Pin
Justin Perez25-Jan-08 3:02
Justin Perez25-Jan-08 3:02 
AnswerRe: How to read text present on a image Pin
Paul Conrad25-Jan-08 3:48
professionalPaul Conrad25-Jan-08 3:48 
AnswerRe: How to read text present on a image Pin
Steven J Jowett25-Jan-08 5:45
Steven J Jowett25-Jan-08 5:45 
AnswerRe: How to read text present on a image Pin
eyes200729-Jan-08 19:28
eyes200729-Jan-08 19:28 
QuestionHow to get file name from openfiledialog without file path Pin
ejaz_pk25-Jan-08 1:31
ejaz_pk25-Jan-08 1:31 

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.