|
-
May 11th, 2013, 03:47 PM
#7
Re: DataGridView and button click information sharing question
Other options are to control validation and adding rows using a BindingSource component and DataTable events. Any time you can avoid the user interface and work directly with the data is the best way to go. I have no all encompassing example to provide but do have a article on MSDN Working with DataTable events that if you study it (see also references at the bottom of the article) and comprehend how these events work they will provide you with a path to take.
When going this route you can manually create these events if you hand coded data operations or access these events when you have created strong typed data objects (i.e. via the IDE data wizard).
See also How Do I: Add validation (strongly typed datasets) by Beth Massi.
To do this right you need to spend time learning bit by bit rather than jumping in and handling the task in your current project.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|