Click here to Skip to main content
16,007,932 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to show data in datagrid Pin
Dave Kreskowiak15-Mar-05 9:13
mveDave Kreskowiak15-Mar-05 9:13 
GeneralCalling a button click Pin
Suman Singh15-Mar-05 7:55
professionalSuman Singh15-Mar-05 7:55 
GeneralRe: Calling a button click Pin
Jim Matthews15-Mar-05 8:32
Jim Matthews15-Mar-05 8:32 
GeneralRe: Calling a button click Pin
Suman Singh15-Mar-05 8:54
professionalSuman Singh15-Mar-05 8:54 
GeneralRe: Calling a button click Pin
Jim Matthews15-Mar-05 9:25
Jim Matthews15-Mar-05 9:25 
GeneralRe: Calling a button click Pin
Suman Singh15-Mar-05 10:17
professionalSuman Singh15-Mar-05 10:17 
GeneralRe: Calling a button click Pin
Jim Matthews15-Mar-05 10:32
Jim Matthews15-Mar-05 10:32 
GeneralLoop Question Pin
Makniteasy15-Mar-05 7:27
Makniteasy15-Mar-05 7:27 
i need to loop some rows in my datagrid to add them and show the total.
i am using:
<br />
Dim dr As DataRow<br />
        Dim Amount As Double = 0<br />
        For Each dr As System.Data.DataRow _<br />
        In ds.Tables(0)<br />
            dr = dr + ds.Tables(0).Rows.Item("Amount")<br />
        Next<br />
        Me.Text = ("My Balance $") & Amount.ToString<br />

everything is fine except the underlined part. it keeps saying that it is a member of system.data.datatable which is not a collection type. does anyone know what i am doing wrong?

Makniteasy
GeneralRe: Loop Question Pin
Jim Matthews15-Mar-05 8:30
Jim Matthews15-Mar-05 8:30 
GeneralRe: Loop Question Pin
Makniteasy15-Mar-05 8:42
Makniteasy15-Mar-05 8:42 
GeneralRe: Loop Question Pin
Jim Matthews15-Mar-05 9:09
Jim Matthews15-Mar-05 9:09 
GeneralRe: Loop Question Pin
Dave Kreskowiak15-Mar-05 9:11
mveDave Kreskowiak15-Mar-05 9:11 
GeneralRe: Loop Question Pin
Makniteasy17-Mar-05 7:15
Makniteasy17-Mar-05 7:15 
GeneralHTA and IsConnectible Ping Pin
pn199515-Mar-05 3:32
pn199515-Mar-05 3:32 
GeneralRe: HTA and IsConnectible Ping Pin
Dave Kreskowiak15-Mar-05 6:22
mveDave Kreskowiak15-Mar-05 6:22 
Generalneed help: deserialise Pin
Dahoolio15-Mar-05 3:14
Dahoolio15-Mar-05 3:14 
GeneralRe: need help: deserialise Pin
Dave Kreskowiak15-Mar-05 6:17
mveDave Kreskowiak15-Mar-05 6:17 
GeneralRe: need help: deserialise Pin
Dahoolio16-Mar-05 20:17
Dahoolio16-Mar-05 20:17 
GeneralRe: need help: deserialise Pin
Dahoolio15-Mar-05 20:40
Dahoolio15-Mar-05 20:40 
QuestionHOW TO: populate Menus at runtime Pin
azam31614-Mar-05 19:39
azam31614-Mar-05 19:39 
AnswerRe: HOW TO: populate Menus at runtime Pin
rwestgraham14-Mar-05 21:38
rwestgraham14-Mar-05 21:38 
GeneralHide Tabpage Pin
Mohamed Ishak14-Mar-05 19:27
professionalMohamed Ishak14-Mar-05 19:27 
GeneralRe: Hide Tabpage Pin
rwestgraham14-Mar-05 21:04
rwestgraham14-Mar-05 21:04 
GeneralRe: Hide Tabpage Pin
Mohamed Ishak15-Mar-05 2:59
professionalMohamed Ishak15-Mar-05 2:59 
GeneralDetecting CD drive media change Pin
thebox211214-Mar-05 17:16
thebox211214-Mar-05 17:16 

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.