A
Aaron Smith
Ok, this is an odd one, but I could use some assistance with the
framework 2 in VB.Net...
I want to have a DataGridViewColumn, only have it use the ComboBox, then
when they drop down the combobox, open up another datagridview instead
of the combobox dropdownlist. The reason I want to do this, is so I can
show more than one column at a time in the drop down list. Instead of
trying to make a multi-column combo, I thought it would be much better
to use a DataGridView.
I have it close, but not quite working... One thing I ran into, was that
if I add the DataGridView to the DataGridEditingControl, the grid will
only display in the cell, and not outside of it.. Probably because it's
inside it and using it as a container. So, what I tried next is to add
it to the controls collection of the ParentContainer (which ends up
being the form) ... Aside from a location issue, this seems to work,
with one flaw.... If you try to click in the grid, the combo box loses
focus and closes (which destroys the editing control and closes the
grid) ....
I was going to attempt to just create a editing control from scratch and
inherit from the DataGridView, but then how do you tie a combobox to it
for the "dropdown" arrow, and get it set to a seperate datasource than
what the parent DataGrid is attached to?
As a note, this main datagrid shows a list of that has one field that is
just an ID out of a second table. The second table has this ID field,
but also a user entered ID field plus descriptions and names. In the
drop down, I don't want to see the ID, I want to see the user entered ID
and names...
Any suggestions?
framework 2 in VB.Net...
I want to have a DataGridViewColumn, only have it use the ComboBox, then
when they drop down the combobox, open up another datagridview instead
of the combobox dropdownlist. The reason I want to do this, is so I can
show more than one column at a time in the drop down list. Instead of
trying to make a multi-column combo, I thought it would be much better
to use a DataGridView.
I have it close, but not quite working... One thing I ran into, was that
if I add the DataGridView to the DataGridEditingControl, the grid will
only display in the cell, and not outside of it.. Probably because it's
inside it and using it as a container. So, what I tried next is to add
it to the controls collection of the ParentContainer (which ends up
being the form) ... Aside from a location issue, this seems to work,
with one flaw.... If you try to click in the grid, the combo box loses
focus and closes (which destroys the editing control and closes the
grid) ....
I was going to attempt to just create a editing control from scratch and
inherit from the DataGridView, but then how do you tie a combobox to it
for the "dropdown" arrow, and get it set to a seperate datasource than
what the parent DataGrid is attached to?
As a note, this main datagrid shows a list of that has one field that is
just an ID out of a second table. The second table has this ID field,
but also a user entered ID field plus descriptions and names. In the
drop down, I don't want to see the ID, I want to see the user entered ID
and names...
Any suggestions?