Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Is there a dual row DataGridView ?

$
0
0

Hello all. Is it possible to make a DataGridView with two rows representing one DataRow ? In international trading, there is document called packing list. After typing, the printing of a packing showing two lines for each DataRow. For example :

item  qty  unit   number of boxes  net weight  gross weight

1     10   pcs          2                        2                3

       20   pcs                                    4                6

2.     5   pcs           4                         5               6

       20  pcs                                     20             24

On the screen when we type data, we want all input controls to resemble what we see in the printing, data of a box appearing on the first line and data of total boxes on the second line. I saw a program 12 years ago that can do that. It actually used two DataRows to represent one row of data we want (an illusion of course). Eight years ago I used Delphi to write the same program. Delphi provided something like a belt that I could put TextBox on it. I put two rows of TextBox on a belt. A belt acts like a row of a DataGridView. When three rows are loaded to a program, three belts are created. The whole thing  worked just like a DataGridVew.

Now that I am rewriting our old Delphi program using C#. I could not find anything like the delphi belt mentioned above. Does any one know how to achieve the above dual line DataGridView ?

Thank you all.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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