B
Bruce Schechter
I am creating a Windows Form which will hold two primary controls: a
listview docked on the left and a datagrid docked on the right. I'm putting
a "spliiter" between them, and I had hoped to design it such that the
splitter was tied to both (listview and datagrid). The behavior I desire:
when the user slides the splitter right the listview would expand and the
datagrid would collapse.
But, I havnt achieved that goal. (This is my first try at using the
splitter control.) Apparently, I need to dock the splitter on the left or
right, but that "attaches" it only to one or the other of the listview and
the datagrid.
Question: how can I achieve my goal? Can I somehow attach the splitter to
both controls? Or, should I attach it to one of them and then respond to a
splittermoved event and programmatically change the size of the other
control(which seems feasible but also seems like something I'd like to avoid
if I can.) Or, something else?
Thanks,
Bruce
listview docked on the left and a datagrid docked on the right. I'm putting
a "spliiter" between them, and I had hoped to design it such that the
splitter was tied to both (listview and datagrid). The behavior I desire:
when the user slides the splitter right the listview would expand and the
datagrid would collapse.
But, I havnt achieved that goal. (This is my first try at using the
splitter control.) Apparently, I need to dock the splitter on the left or
right, but that "attaches" it only to one or the other of the listview and
the datagrid.
Question: how can I achieve my goal? Can I somehow attach the splitter to
both controls? Or, should I attach it to one of them and then respond to a
splittermoved event and programmatically change the size of the other
control(which seems feasible but also seems like something I'd like to avoid
if I can.) Or, something else?
Thanks,
Bruce