Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi i have these codes:
Dim dt As New DataTable
                        ' Create four typed columns in the DataTable.
                        dt.Columns.Add("ConflictingPaper", GetType(String))
                        dt.Columns.Add("Numberofstudents", GetType(Integer))
                        dt.Columns.Add("AdminNo", GetType(String))
                        Dim query1 = (From a In dt3 Group CStr(a.Field(Of Integer)("PaperNo")) By AdminNo = (a.Field(Of String)("AdminNo")) Into Group Select dt.LoadDataRow(New Object() {String.Join(":", Group.ToArray()), Group.Count(), AdminNo}, False)).ToList().Count()
                        DataGridView3.AutoGenerateColumns = True
                        Me.DataGridView3.DataSource = dt
aiming to populate:

Conflictinglist    numofstudents   adminno
12:26              2               111411H
                                   298291Y
2:4                4               292918J
                                   102938S
                                   192838A
                                   292837V
.
.
.


populating it in datagridview.
but my codes are some some errors which ican't seemed to solve.
Above code is using linq query.
When program is run, the form sort of hang, my data is not populated out.

Please help me with the codes! thanks!
Posted
Comments
Ankur\m/ 29-Jul-13 5:38am    
Use a debugger to see where the problem is. That will narrow down the issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900