|
-
Aug 31st, 2003, 09:57 PM
#1
Thread Starter
Hyperactive Member
data view
In my project, I have a ComboBox and a DataGrid.
On the Load of the Form, I put this code;
OleDbDataAdapter1.Fill(DataSet11, "students")
Dim dv As DataView
dv = DataSet11.Tables("students").DefaultView
MessageBox.Show(dv.Count)
DataGrid1.DataSource = dv
'to combo
Dim a As Integer
For a = 1 To dv.Count
ComboBox1.Items.Add(dv.Item(0))
Next
My first problem is in the ComboBox, How can I add all the Student No to ComboBox?
I tried the code above but doesn't work. Please help me with this?
And my second question is, how can I go to Next or Previous record and how to delete records?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|