Hi everyone ... I currently have a Datagrid connected to a few fields of a single table(I used a DataEnvironment and DECommand to do that). The DataGrid only shows the "Main" topics. I now need to design a method of retreiving/displaying ALL the info. on the selected items in the datagrid.
Say the DataGrid is retreiving "Company","Contact" and "Phone#" from tblCustomers. Now I need to display items like "Fax#","Orders", etc.etc. (similar to OrderDetails table in Northwind DB). I was thinking of just using a second datagrid, using the Text property of the selected item to build the SQL to get what I need. I have accomplished that IF only one item is selected, but I would like to have the ability to allow multi-selections of the Datagrid, then display all the needed info. for each item selected. I can get the Index of each item selected, using the SelBookmarks property, but am stumped on getting the Text property of each. So far, all my tries has returned the Text of the first selected column multiple times.
Any ideas?
P.S. If I am using the wrong control for this, please say so... I am early enough in the design portion of this, that changing it now would not be a problem.
Thanks,
Michael
Say the DataGrid is retreiving "Company","Contact" and "Phone#" from tblCustomers. Now I need to display items like "Fax#","Orders", etc.etc. (similar to OrderDetails table in Northwind DB). I was thinking of just using a second datagrid, using the Text property of the selected item to build the SQL to get what I need. I have accomplished that IF only one item is selected, but I would like to have the ability to allow multi-selections of the Datagrid, then display all the needed info. for each item selected. I can get the Index of each item selected, using the SelBookmarks property, but am stumped on getting the Text property of each. So far, all my tries has returned the Text of the first selected column multiple times.
Any ideas?
P.S. If I am using the wrong control for this, please say so... I am early enough in the design portion of this, that changing it now would not be a problem.
Thanks,
Michael