VB.Net WinForm with DataGridView bound to DataTable and Controls
Using Visual Studio 2010 and VB.Net, create a form with a DataGridView, displaying data from a DataTable
Refer to attached screen shot.
The DataGridView must be a standard, VB.Net DataGridView. No third party controls.
The whole point of this screen is to allow the user to select various rows from the "Cruise" DataTable. The structure of the Cruise DataTable is defined below.
No controls are needed in the grid columns, other than that the first column (named "Selected") should use a CheckBox.
The column with DateTime value "CruiseDate" should display in the system ShortDate format.
NONE OF THE COLUMNS (other than "Selected") is editable.
CONTROLS BELOW THE GRID:
The control txtSelected should display the number of rows currently selected. The value should be updated any time the user takes an action that changes the number of rows selected.
Combo1 is a DropDownList with three choices: Stand, CruiseDate, and CruiseType. It should default to "Stand". Changing the value should change the sort order of the grid accordingly. No need to worry with secondary sort.
The TextBox controls "Prop", "Comp", and "Stand" should select matching rows in the grid when the user presses "Go". Selection should be ADDITIVE. That is to say, pressing the "Go" button should NEVER cause any rows to become UNselected.
Maximum characters in the "Prop" text box are 2.
Maximum characters in the "Comp" text box are 4.
Maximum characters in the "Stand" text box are 4.
Pressing the "Select Remaining" shoudl select all rows after the currently selected grid row.
Pressing the "Unselect Remaining" should select all rows after the currently selected grid row.
Datatable "Cruise" has the following columns:
The form should be named FormCruise.
In the form load, the Cruise DataTable should be populated with 5 sample rows (values are irrelevant), and the grid should be bound to the DataTable.
Your deliverable is the FormCruise.vb and FormCruise.Designer.vb files.