Click here to Skip to main content
16,021,125 members

Comments by M.L.S.14 (Top 7 by date)

M.L.S.14 31-May-13 15:01pm View    
love your solution as it obviously gets me my answer, but it's beyond my expirience level as i am just starting out with VB. but thank you!!(:
M.L.S.14 29-May-13 14:52pm View    
this is all i have so far, it's not very much though:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim workers(,) As Double = {{57.9, 56.0, 62.1, 48.9, 12.4}, {67.8, 66.2, 75.6, 58.3, 18.8},
{69.8, 68.0, 78.3, 61.8, 18.0}, {69.7, 66.9, 77.1, 59.0, 17.7},
{68.1, 62.5, 76.5, 54.6, 15.1}, {63.7, 53.8, 71.2, 46.1, 10.6}}
Dim spreadAve As Double = 0
Dim counter As Integer = 0
Dim sum As Double = 0

For r As Integer = 0 To 5
DataGridView1.Rows.Add()
For c As Integer = 0 To 4
DataGridView1.Item(c, r).Value = workers(r, c)
Next
Next

End Sub
End Class


if i'm doing something wrong could you please let me know?? i learned this on my own and i know i'm not the best at teaching myself things when it comes to coding so it'd be much appreciated! thank you!(:
M.L.S.14 26-May-13 19:18pm View    
uhmm, i have no idea, lol. this is the first time i've ever been introduced to dgv. i took the numbers from a text file and coded it to input the data from the text file into the dgv?
M.L.S.14 26-May-13 15:04pm View    
i just need to get the average of the SprS column in my dgv and output it to either a textbox or listbox
M.L.S.14 23-May-13 18:50pm View    
i've only inputted the data into the dgv and thats where im stuck. i know i need a For...Next loop but not sure how i'm supposed to format it.