Cheers Dave, I'll try this read up on datatables too. DPF
DaveFish
Posts
-
Datagrid and Array loading -
Datagrid and Array loadingI have an array of mixed data Integer and string in a variable array I wish to pass to a datagrid, but all the information I find reletes to the use of datagrids with Datasets and datatables. Is it possible to pass data from a two dimensional Array to a replicated image in a datagrid ie col1, rwo 1 to col1 row 1? I'm really new at this. Can anyone help? Dim X as single Public Dat_Arr(1, 20)as variantType me.DataGrid1.DataSource.= Dat_Arr???? DPF
-
Looping through a form...I've read the link as provided and although this guides you through binding data from a table to a control I need to pass data from controls on multiple forms back to table,dataset or array for processing, so I have many 'forward' and 'backward'passes. Can anyone suggests where I would start with this. ADO loks interetsing, but is this the best approach bearing in mind my app as above.:-D DPF
-
Looping through a form...Hmm... more food for thought. As a brief overview, I have six forms, each of which has a number of checks again data loaded in the previous form to refine the selction in the current forms comboboxes. Once the selections are satisfied the data is passed back to an array (One per form) for further processing in modules. If it's assumed all works well, it intend to dump the result and data to an xml file and have the ability to load this back into my program at a later date. I hope that makes sense. I'll read the link above and also on datasets/datatable Thanks so far DPF
-
Looping through a form...Thanks guy's, both sets of code work in my app and it does give me a clue of where to go next. My next task from here is to use the data from the text boxes and populate an array with the label text in the first column and the data in the second. Is this the best way to approach this, or is it a long route to a short journey?? DPF
-
Looping through a form...I'm attempting to loop through the controls on a windows form, but get stuck trying to access control within a groupbox. here's a copy of the code so far Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Ctrl As Control Dim Grp As Control For Each Ctrl In Controls MsgBox(Ctrl.Name) Next For Each Grp In GroupBox1 (This is where I get stuck) I cannot find the correct syntax or code to access the Groupbox itself. In total I have 2 buttons, 6 comboboxes, and 4 checkboxes on the form. Any ideas out there?? :( DPF