Code for navigation using button click in vc++ 2005
I have made an oledb connection b/w mySQL & Visual c++ Windows form in VS 2005 and was successful in displaying the 5 fields of the db created in mySQL.
I used the command this->oledbdataadapter1->(ds,"tablename").
But I'm deep trouble that i cannot procced ie; navigate the form using the buttons created even after trying lot many synatxes.
Will you please help me out with the exact syntax/command by which i can get the navigation of fields done.
The textboxes of these fields have already been correctly mapped to their 'text' field in databinding 'property' of each of them.
Expecting a reply...and moreover I would be thankful to get a personal mail.
[email protected]
regards
Bharat
The DataGridView control provides a customizable table for displaying data. The DataGridView class allows customization of cells, rows, columns, and borders through the use of properties such as DefaultCellStyle, ColumnHeadersDefaultCellStyle, CellBorderStyle, and GridColor. (Source: MSDN)
The DataGridView control is a new control that replaces the DataGrid control. The DataGridView control provides numerous basic and advanced features that are missing in the DataGrid control. Additionally, the architecture of the DataGridView control makes it much easier to extend and customize than the DataGrid control. (Source: MSDN)
If you are new to DataGridView control you will encounter minor problem on how to connect its datasource to the database. I am even confused with the sample source code given by Microsoft. But in this tutorial you will learn how to bind data to the Windows Forms DataGridView Control.
With a few modifications on the code from our previous example you will learn exactly how to bind data to the DataGridView control.
Microsoft Access and Microsoft SQL Server sample are being provided.
Previous: