Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How get row and column from tablenode (Read 2178 times)
roberto.bonilla
YaBB Newbies
*
Offline


I'm so Happy

Posts: 14
Joined: May 25th, 2009
How get row and column from tablenode
May 25th, 2009 at 2:46am
Print Post  
I new using Diagram component, but i need know how can i get the row and column from origen and destination when start to draw a link.

1. I've 2 tablenode and when i start to draw a link between tablesnode a need get the value in each cell from start and end link

??? ???

Regards

RB
  

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How get row and column from tablenode
Reply #1 - May 25th, 2009 at 5:11am
Print Post  
Hello Roberto,

You could call table.CellFromPoint to get the cells at the mouse position in LinkCreating event handlers. Alternatively, check the LinkValidationEvenArgs.TableRow property. Once the link has been created, you can use link's OriginIndex and DestinationIndex properties.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
roberto.bonilla
YaBB Newbies
*
Offline


I'm so Happy

Posts: 14
Joined: May 25th, 2009
Re: How get row and column from tablenode
Reply #2 - May 25th, 2009 at 1:29pm
Print Post  
thanks Stoyan

CellfromPoint have 3 parameter

Public Function CellFromPoint ( _
    point As PointF, _
    ByRef row As Integer, _
    ByRef col As Integer _
) As Boolean

but in the LinkCreated event just i have PointF not the row and column


could put some examples to clarify how to do it please ?

???

Regard

RB
  

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How get row and column from tablenode
Reply #3 - May 25th, 2009 at 2:36pm
Print Post  
Hi,

CellFromPoint is useful only in the validation event handlers. In LinkCreated the link is already connected to some table rows, and you can use its OriginIndex and DestinationIndex properties to get the related rows and loop over their cells.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
roberto.bonilla
YaBB Newbies
*
Offline


I'm so Happy

Posts: 14
Joined: May 25th, 2009
Re: How get row and column from tablenode
Reply #4 - May 26th, 2009 at 4:20pm
Print Post  
Thanks a Lot  Grin

Stoyo


Finally I did it

Regards

RB  Grin
  

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How get row and column from tablenode
Reply #5 - May 26th, 2009 at 4:30pm
Print Post  
that's great Grin
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint