datagrid to windows form
-
hi, i have a form(frmQueue) where i've put a datagrid control with only one column on it. when the user clicks on the "Update" button it gets whatever info from the datasource and displays it in the datagrid. the user can then select a particular column and click a "Get Details" button, when the button is clicked, i want the details to be displayed in textboxes in another form(frmTransaction). my question is how do i code the Get Details button. im new to this language...so an example would really get me working. thx in advance When a man's wife starts to understand him, she usually stops listening to him. :wtf:
-
hi, i have a form(frmQueue) where i've put a datagrid control with only one column on it. when the user clicks on the "Update" button it gets whatever info from the datasource and displays it in the datagrid. the user can then select a particular column and click a "Get Details" button, when the button is clicked, i want the details to be displayed in textboxes in another form(frmTransaction). my question is how do i code the Get Details button. im new to this language...so an example would really get me working. thx in advance When a man's wife starts to understand him, she usually stops listening to him. :wtf:
Change the constructor of your second form and add a srting parameter to it. And when you create it in your button event handler, pass he column name there and proccess it in second form. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
-
Change the constructor of your second form and add a srting parameter to it. And when you create it in your button event handler, pass he column name there and proccess it in second form. Mazy "A bank is a place that will lend you money if you can prove that you don't need it." - Bob Hope
-
Hi Mazy, When u said to pass the column name, did u mean the column name from the datasource or the datagrid?. i just wanna confirm.