Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2012 Multiple rows in a single row inside a datagridview

$
0
0
I am using Microsoft Visual Studio 2012 Update 2

I am using DataGridView control to display data from database.

Sometimes it happens, that, due to large number of columns in database tables, when the data gets filled in datagridview, user either has to scroll horizontally for all data or has to shrink all data in available view.

This is because all columns are displayed in single row of grid.

How can I display multiple rows inside a single row of that datagrid?So that, I can adjust some columns after first row in the same row.

I am displaying my problem as below

This is the gridview i am getting

ITEMNAME ITEMVALUE OPENING INCOMING OUTGOING CLOSING HSN BATCH
One 100 10 2 5 7 A1 B1
Two 200 11 8 8 11 A2 B2








I want results in grid as below
First row
ITEMNAME ITEMVALUE OPENING INCOMING
One 100 10 2
OUTGOING CLOSING HSN BATCH
5 7 A1 B1








Second row
ITEMNAME ITEMVALUE OPENING INCOMING
TWO 200 11 8
OUTGOING CLOSING HSN BATCH
8 11 A2 B2








I am developing a Desktop Application,by the way Can anyone help me?

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>