Datagrid Dispaly

Seetal

New member
Joined
Dec 15, 2005
Messages
2
Programming Experience
Beginner
I have 2 comboboxes(outside of datagrid) and 1 datagrid.Based on the two combobox selections,the selected items on both should display in a single datagrid.
My problem is when i select the first combobox item,it displays properly on the datagrid.when i select the second combobox item it should append in the datagrid.instead it replaces the first column.even if i select the other columns in the first combobox it should also append not replace.
How do you display more than one column from the same combobox in a datagrid
Regs
Seetal
 
Hello and welcome to the forum.
Please notice that there is a category for datagrids and that I have moved this thread to that category. I assume you are using a winform grid since you originally posted in the Windows Forms category.
Now in order to answer your question we need to know how you are using the datagrid. Are you using a datasource? Posting some appropriate code would help us help you better.
Usually you would have a datasource (a dataTable for instance) that is bound to the datagrid and you would simply add rows to the dataTable.
 
I'm using Janus controls grid and i'm using datatable
code:
Dim mytable As DataTable
myTable =
New DataTable("Client_Details")
myTable.Columns.Add(
New DataColumn(UiCboClient.Text, GetType(String)))
Me.GrdBusiness.SetDataBinding(myTable, "")
Me.GrdBusiness.RetrieveStructure()
 
Back
Top