*Online Examination System

Heading Here

Dear friends
i have to develope online examination system in vb.net ...but there is some problem ..
Inserting teacher record from combobox,Subject record from Listbox into a table name Subj_Paper..
columns are Sbj_Paper_ID,Sbj_Paper_Name,T_ID...
Sbj_Paper_ID isa the primary key
T_Id is foreign key from Teacher table ...............**

Recommended Answers

Is your table a datagrid or a database ?
what's the error ?

a wild guess

        DataGridView1.Rows.Add(1)
        DataGridView1.Rows(0).Cells("T_ID").Value = ComboBox1.Items(0)
        DataGridView1.Rows(0).Cells("Sbj_Paper_Name").Value = ListBox1.Items(0)
Jump to Post

All 2 Replies

Post your codes so we can help you easily

Is your table a datagrid or a database ?
what's the error ?

a wild guess

        DataGridView1.Rows.Add(1)
        DataGridView1.Rows(0).Cells("T_ID").Value = ComboBox1.Items(0)
        DataGridView1.Rows(0).Cells("Sbj_Paper_Name").Value = ListBox1.Items(0)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.