Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.NET DataGrid

Status
Not open for further replies.

netangel

Programmer
Feb 7, 2002
124
PT
This is more a 'complaint' than a question, but if anyone has a work around it, please be free to share it.

This is about those VB.NET DataGrids that do everything except the essencial. My project uses a lot of parent/child relationships, like order and order lines kind.
So far (using the order sample), I've got a form with a list of orders, and their detail (client data, payment mode and lines). When I select a order, it's details panel fills automaticlly. To do this, I have a single line of code on the entire form, and a dataset (thats where the trick is). This is perfect. I can do a full complex program using this method on less that a week.

But I have somethig missing: inserting data. This is where the problem starts: If I wanted to fill the order lines by writing the product description and other data, it would be the simplest thing on the whole world. But I want to select the product from a list (combo). And I want to be able to pick the line discount (rebate) form another list, and so on.

Basiclly, what I want is a datagrid with comboboxes, NumericUpDown, and several other controls, like another datagrid inside a cell. I know I can buy grids that accept comboboxes from several component companies, and I've done one myself, but what I want is something a bit more complex: an ASP.NET DataGrid.

The ASP.NET DataGrid allows all this (and much more). Why can't Microsoft find a way of doing this? This is probably not that complex. NetAngel
 
Hi,
I had a similar problem wanting to add a button as a datagrid column, I finally used a underlined textbox field and simulated a hyper-link.
This shows that we always get there in the end, even if it hurts banging our head against the wall for days!

Here is an excellent site for tips on Windows Forms etc. with a big section on datagrids:


Enjoy,

Paul.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top