Where can I find a Grid for a Master/Detail Invoice

As I've been seen, the "DataGrid" and "DataDridView" only allow me to View Data and modify it, Only when those has been Bounded.

If I want to make a Master/Detail Invoice, do I have to buy a Grid on the Internet or there any possible of find a Free one.

I Really don't know why Visual Basic Has never had a Grid for this purpose, A Software Development like Visual Basic, I know that some people has done this.

[456 byte] By [abasilis] at [2008-1-9]
# 1

Hi Abasilis,

I presume that you want to make a Master/Detail Form or Page (changes in the Master table will affect the Detail table content).

Here are some samples for you to try.

1. Walkthrough: Creating a Master/Detail Form Using Two Windows Forms DataGridView Controls

http://msdn2.microsoft.com/en-us/library/y8c0cxey.aspx

2. HOW TO: Create a Master/Detail Page with Web Form Controls

http://support.microsoft.com/kb/308485

3. A Master Detail DataGrid

http://www.codeproject.com/aspnet/masterdetailgrid.asp

4. GridView inline Master/Detail record display

http://www.codeproject.com/aspnet/MasterDetail.asp

I hope that can help you.

Best regards,

Martin Xie

MartinXie-MSFT at 2007-10-2 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 2

Well at least it's a guide, thanks very much!!

This is what I want to do!!

http://software.onlinepc.com.au/images/invoice1.gif

All the examples I see are bound Datagrid, I want to use it empty to accept data entry!

abasilis at 2007-10-2 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 3

Hi Abasilis,

Did you mean creating unbound DataGridView Control?

Please check this MSDN document.

http://msdn2.microsoft.com/en-us/library/zf3zx9fy(VS.80).aspx

How to: Create an Unbound Windows Forms DataGridView Control

The code example inside demonstrates how to populate a DataGridView control programmatically without binding it to a data source. This is useful when you have a small amount of data that you want to display in a table format.

Read Walkthrough: Creating an Unbound Windows Forms DataGridView Control for detailed explanation.

Please create a Form1, and then copy the completed VB.NET code sample inside above document into Form1.vb, run it and preview the result.

Best regards,

Martin Xie

MartinXie-MSFT at 2007-10-2 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 4

Thanks!!

I really know you want to help me, I really apreciate it!!

Maybe I did not explain good!!

In an invoice you have a Master/Detail relationship. Master is Up the invoice and Details is down in the Grid, where you enter the items you want to sell for ex.

I used the term "unbound" because I thought it means a Open Grid without being bound with data, but now I see that Unbound means that I put the data not from a database, I can put it from code directly.

Thanks Againg your help is really apreciate it.

Check out the picture above.

Regards,

abasilis at 2007-10-2 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...
# 5
Hi Abasilis

I move it from VB Express forum to Data Controls and Databinding forum for better responses.

Thank you for your understanding!

MartinXie-MSFT at 2007-10-2 > top of Msdn Tech,Windows Forms,Windows Forms Data Controls and Databinding...