C datagrid cellvalidating dating for 1 year
Fill(data) Return data End Function For information about building this example from the command line for Visual Basic or Visual C#, see Building from the Command Line or Command-line Building With
With the Data Grid View control, you can display and edit tabular data from many different kinds of data sources. Now your data source is created, right click on Data Grid View control and on the option Choose Data Source, select the data source you just created. For a code example that uses an unbound Data Grid View control, see Walkthrough: Creating an Unbound Windows Forms Data Grid View Control. Choose your data connection, if you already have a connection available select that, otherwise make new connection, and follow the steps and after that click next. The Data Grid View control is highly configurable and extensible, and it provides many properties, methods, and events to customize its appearance and behavior. Now choose a data source by right clicking on the Data Grid View and then click on Add Project Data Source. Now select data source type, I am choosing Database in this example. This tutorial is a basic introduction of how to write a simple data driven application using Visual Studio 2008 wizards without writing a single line of code.
In my next articles, I will talk about more detailed features of the Data Grid View control.The Binding Source component is the preferred data source because it can bind to a wide variety of data sources and can resolve many data binding issues automatically.