connection with ms access 2007 with datagrid in C#

Jan 27 2010 12:58 AM
Hi Guys,

Here I am having Ms Access 2007 database.
Roll number , Student Name, Physics Marks, Chemistry Marks, Maths Marks, Total Marks , Percentage.
fields are there.
Roll number and Student Name is stored in database and others fields are blank in which Roll number is the primary key,
Now I wanted when the code is Run then in datagrid I just given the roll number then its should automatically select the student name from the database and now user will enter the Physics marks chemistry marks and Maths marks ,
then the total marks will be calculated and as well as percentage.
   
Two buttons are there one is SAVE by which the all the marks is going to be saved in database,
another button  is Print by which to take the print out of that page can be done .

Please help me to do that.
  

Answers (1)