Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi friends,

I am new to vb.net,

I need a coding help for displaying the sql datavalues to be retrieved in a datagridview in a zigzag manner.

for example
1  8  9   16
2  7  10  15 
3  6  11  14
4  5  12  13

i need the above method in datagridview ....kindly give me the solution in vb.net?

thanks in advance
Posted
Updated 23-Mar-12 22:03pm
v2
Comments
fjdiewornncalwe 23-Mar-12 10:02am    
We are not here to provide you with complete solutions to your homework. Show us what you have tried and we will gladly guide you and teach you how to make it work. Cheers.
Member 7976636 23-Mar-12 10:16am    
hi,

i need the logic of displaying the values from db to display in datagridview as the above manner

1-tablevalue1 6-tablevalue6 7-tableval7
2-tablevalue2 5-tablevalue5 etc

3-tablevalue3 4-tablevalue4
Nelek 24-Mar-12 6:28am    
You were asked to show what you have tried, not this.
Member 7976636 23-Mar-12 10:41am    
hi,

how to get the value of DataGridView3.Rows(j).Cells(3).Value of datagridview?

1 solution

The simple solution is create a DataTable, populate it as per your requirement and then bind to the DataGridView.
 
Share this answer
 

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