No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi, Dim MyDT As New DataTable Dim MyRow As DataRow MyDT.Columns.Add(New DataColumn("Item", GetType(Int32))) MyDT.Columns.Add(New DataColumn("Quantity", GetType(Int32))) MyDT.Columns.Add(New DataColumn("Price", GetType(Int32))) MyDT.Columns.Add(New DataColumn("Total", GetType(Int32))) MyDT.Columns.Add(New DataColumn("InvoiceNo", GetType(Int32))) MyRow = MyDT.NewRow() MyRow(0) = TextBox1.Text MyRow(1) = TextBox2.Text MyRow(2) = TextBox3.Text MyRow(3) = TextBox4.Text MyRow(4) = TextBox5.Text MyDT.Rows.Add(MyRow) Dim i As Integer DataGridView1.DataSource = … |
|
Hi.. my query is.. i have combobox in that i have to load the particular column from db.. for that i used ... ...... da.fill(ds,"user") dt=ds.tables("user") for i= o to dt.rows.count -1 combobox1.items.add(dt.rows.count(i).item(0)) next my doubt is... i have lots of columns in my table(db)... if i load combobox one … |