Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Modifying Table in PropertyGrid causes crash (Read 3030 times)
rfuegen
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Oct 31st, 2007
Modifying Table in PropertyGrid causes crash
Oct 31st, 2007 at 2:45pm
Print Post  
when removing rows from a table, the flowchart control crashes with an Index out of range Exception.

how to reproduce this error with the flowchart.net demo application (version 4.3.1):

- select "Table-related diagrams"
- select the "ERM Diagram"
- click on (select) "Entity4" box
- in the lefthand property window, select the "Rows" property and open the "Row Collection Editor" by clicking on "..."
- remove all three members in the row collection editor
- apply the changes

the application now crashes with beforementioned exception. Is there a way to tell the flowchart control that the box content has changed or should the control figure this out by itself ?

tnx
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Modifying Table in PropertyGrid causes crash
Reply #1 - Oct 31st, 2007 at 3:32pm
Print Post  
Hi,

At this time the control does not track changes that you do directly to the Rows or Columns collections of a table. Use them only for read access to the rows and columns. You must call the DeleteRow method to delete a row, or you could set the table's RowCount property to a smaller value.

Stoyan
  
Back to top
 
IP Logged
 
rfuegen
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Oct 31st, 2007
Re: Modifying Table in PropertyGrid causes crash
Reply #2 - Dec 5th, 2007 at 2:38pm
Print Post  
tnx for the answer.

If I remember correctly, when displaying the chart I can't prevent the user from deleting rows from a table. Am I right or can this be prevented ?

cu

Stoyo wrote on Oct 31st, 2007 at 3:32pm:
Hi,

At this time the control does not track changes that you do directly to the Rows or Columns collections of a table. Use them only for read access to the rows and columns. You must call the DeleteRow method to delete a row, or you could set the table's RowCount property to a smaller value.

Stoyan

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Modifying Table in PropertyGrid causes crash
Reply #3 - Dec 5th, 2007 at 5:20pm
Print Post  
If you display the table properties in a property grid, the user will be able to delete rows by setting a smaller RowCount value. You could display only a subset of the table properties as shown in the Flowcharter sample project.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint