Hi i am using two forms. First form is showing datagridview using checkbox colums, datagridview having information bind from sqlserver. second form having text boxes and combo boxes. My question is datagridview cell values information how to pass second form textboxes and comboboxes.
Anyone can send answer please. ( using windows Forms and c#)
Thanks and Regards
Sureshbabu
Loading
Mamta MPosted Jan 12, 2011, 1:48 AM
The second approach is explained here: Expose the values from one form to another through public properties. Create a public property in Form1 which will be assigned the DataGridView's value. Then in form2, access that public property through a reference.
eg: string name = objForm2.NameCellValue;
Madhu KPosted Jan 12, 2011, 1:14 AM
http://www.c-sharpcorner.com/UploadFile/DipalChoksi/PassingDataBetweenaWindowsFormandDialogBoxes11242005035025AM/PassingDataBetweenaWindowsFormandDialogBoxes.aspx