working with datagrids in Windows Forms [modified]
-
well I just wanted to know, Can u place another datagrid inside one datagrid. I'm talking abt System.Windows.Forms here. the other thing is that I wanted to do that bcz I wanted to display and receive data for a sales form. It has dat comming from 5 related tables. I had this idea but can any one of u give me some better idea of making a v user friendly interface. the tables are Prodline, prodmodel, Bill, purchase and customer. Its basically for a coomputer shop. Can Anyone help? I'm working in .net 1.1 mind u
-- modified at 8:40 Saturday 22nd July, 2006
-
well I just wanted to know, Can u place another datagrid inside one datagrid. I'm talking abt System.Windows.Forms here. the other thing is that I wanted to do that bcz I wanted to display and receive data for a sales form. It has dat comming from 5 related tables. I had this idea but can any one of u give me some better idea of making a v user friendly interface. the tables are Prodline, prodmodel, Bill, purchase and customer. Its basically for a coomputer shop. Can Anyone help? I'm working in .net 1.1 mind u
-- modified at 8:40 Saturday 22nd July, 2006
Why do you need "nested datagrids" at the first place ? Believe me, users hates anything that doesn't not comply with their expectations and giving them that kind of interface won't take you to the right place. Instead of creating a mess from the five tables on the one form I would consider adding a buttons/hyperlinks inside of the data rows. Clicking on particular button user navigates to the new form (or opens a e.g. combobox) with the data from linked table (prodline, prodmodel, etc).
Best regards, ----------- Igor Sukhovhttp://sukhov.net
-
Why do you need "nested datagrids" at the first place ? Believe me, users hates anything that doesn't not comply with their expectations and giving them that kind of interface won't take you to the right place. Instead of creating a mess from the five tables on the one form I would consider adding a buttons/hyperlinks inside of the data rows. Clicking on particular button user navigates to the new form (or opens a e.g. combobox) with the data from linked table (prodline, prodmodel, etc).
Best regards, ----------- Igor Sukhovhttp://sukhov.net
-
Many thanks. I was also thinking on almost teh same lines but can u tell me if we can make combo boxed inside of datagrid column.
To put a combo box into a datagrid you should specify that particular columns (which you'd like to be combobox-enabled) should be created using the DataGridComboBoxColumnStyle.
Best regards, ----------- Igor Sukhovhttp://sukhov.net
-
To put a combo box into a datagrid you should specify that particular columns (which you'd like to be combobox-enabled) should be created using the DataGridComboBoxColumnStyle.
Best regards, ----------- Igor Sukhovhttp://sukhov.net