se304 lec11

Download Se304 lec11

Post on 31-Jul-2015

118 views

Category:

Documents

4 download

Embed Size (px)

TRANSCRIPT

1. SE304 : - . visual studio 11-, . (bayanzeerd2002@yahoo.com, +976-88515155) 2. Microsoft visual Studio .NET 2008 Newproject . . :odbcDataConnection :1. Toolbox -> OdbcConnection DoubleClick.2. odbcConnection1- ConnectionStringproperty- - . 3. 3. Select Data Source Machine Data Source- StudDB Data source- odbcDataAdapter Toolbox -> odbcDataAdapter DoubleClick . 4. 2. Data Adapter Configuration Wizard Next .3. Data Adapter Configuration Wizard ->Choose Your DataConnection- Next .4. Data Adapter Configuration Wizard ->Choose a Query Type-Use SQLStatement- Next . 5. 5. Data Adapter Configuration Wizard -> Generate the SQL statement- Query Builder . Add Table Student table - . 6. ( odbcDataAdapter- table ) Add .6. . . Generate SQL statement- Next . 7. DataSet :1. DataSet- odbcDataAdapter Generate DataSet... - . 8. 2. new . DataSet existing odbcDataAdapter- . 9. DataGrid component :1. Toolbox -> WindowsForms -> DataGrid .2. DataGrid- DataSource propertyDataSet- . DataMember property-DataGrid- Table-. 10. 3. DataGrid- Fill . design DataGrid- . Fill a Rut time DataGrid- . Fill .odbcDataAdapter1.Fill(dataSet11.Stud_burtgel); 11.