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
Dotnet Using C#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Madhu KRank #1,514 · 1.1K reputationPosted Jan 11, 2011, 8:14 PM EST
http://www.c-sharpcorner.com/UploadFile/DipalChoksi/PassingDataBetweenaWindowsFormandDialogBoxes11242005035025AM/PassingDataBetweenaWindowsFormandDialogBoxes.aspx
Mamta MRank #268 · 9.4K reputationPosted Jan 11, 2011, 8:48 PM EST
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;