B
Bob Day
using VS 2003, Vb.net...
In a WinForm, I have a datagrid with a parent child relationship named
"Display Details". When you click on the + next to the Parent row, below it
you get "Display Details" -
when you click on that, you get the related child rows of the Parent row.
Everything
displays correctly.
The parent row represents a telephone line (1,2,3 etc) and the child row
represents what is happening real time on that line (Parent Line 1, Child
Row 1 - Playing Greeting, etc.). So rows are constantly being added to the
child rows (i.e. the dataset) (whether displayed or not).
Question 1 - The "Display Details" seems non-standard windows programming.
When you click a + next to an item, you expect to expand what ever is under
it. Is there any way to get rid of the "Display Details" and just
automatically expand to the child rows? There is only this one relation in
the collection.
Question 2 - I would expect "if mygrid.isexpanded(0) = true" to tell me that
the datagrid for row 0 is expanded and the child rows are displayed. It
does not.
It only tells me that "Display Details" is visible or not. Toggling
mygrid.expanded and mygrid.collapsed. simply displays or doesn't display the
"Display Details" option. This is pretty useless. How can I determine if a
Parent row is displaying the child rows or not?
Question 3 - With a Parent row expanded to display child rows, how do I
modify the Parent row? You would think that simply modifying the
corresponding DataSet column value would accomplish this, but this generates
an error that I cannot make sense out of. How do you update a Parent Row
while it is expanded shows related child rows?
Question 4 - Updating a Parent row column value(not a column used in
creating the parent/child relationship) seems to always collapse the child
rows for that parent row. Is there a way around this?
Question 5 - Adding child rows to the DataSet does not display them in the
datagrid if the screen is already full with previously child rows. You can,
of course, scroll down to see it. How would you make the last child row
added visible?
Thanks for your help.
Bob
In a WinForm, I have a datagrid with a parent child relationship named
"Display Details". When you click on the + next to the Parent row, below it
you get "Display Details" -
when you click on that, you get the related child rows of the Parent row.
Everything
displays correctly.
The parent row represents a telephone line (1,2,3 etc) and the child row
represents what is happening real time on that line (Parent Line 1, Child
Row 1 - Playing Greeting, etc.). So rows are constantly being added to the
child rows (i.e. the dataset) (whether displayed or not).
Question 1 - The "Display Details" seems non-standard windows programming.
When you click a + next to an item, you expect to expand what ever is under
it. Is there any way to get rid of the "Display Details" and just
automatically expand to the child rows? There is only this one relation in
the collection.
Question 2 - I would expect "if mygrid.isexpanded(0) = true" to tell me that
the datagrid for row 0 is expanded and the child rows are displayed. It
does not.
It only tells me that "Display Details" is visible or not. Toggling
mygrid.expanded and mygrid.collapsed. simply displays or doesn't display the
"Display Details" option. This is pretty useless. How can I determine if a
Parent row is displaying the child rows or not?
Question 3 - With a Parent row expanded to display child rows, how do I
modify the Parent row? You would think that simply modifying the
corresponding DataSet column value would accomplish this, but this generates
an error that I cannot make sense out of. How do you update a Parent Row
while it is expanded shows related child rows?
Question 4 - Updating a Parent row column value(not a column used in
creating the parent/child relationship) seems to always collapse the child
rows for that parent row. Is there a way around this?
Question 5 - Adding child rows to the DataSet does not display them in the
datagrid if the screen is already full with previously child rows. You can,
of course, scroll down to see it. How would you make the last child row
added visible?
Thanks for your help.
Bob