Jump to content
Software FX Community

How can I get the position of the element that has been expanded?


julio15

Recommended Posts

 Hello, first thank you very much for the response.In the first case I wanted to ask you how can I get the position of the element that has been expanded by the user. For example, if the grid have five elements, I want to know who of the five was the expanded, which would be the x in the response that you gave to me (Grid1.Items[x]).In the second case I test it and it works very well.Sorry for my bad English, thank you very much again,Julio

Link to comment
Share on other sites

Julio,

Now I think I understand.  You are looking for the item that was expanded.  That's easy.  Each GridItem object in the Grid.Items collection has a property called Expanded.

So, the way to find the item(s) that is expanded is:

foreach( GridItem currItem in Grid1.Items )

{

if ( currItem.Expanded )

{

 GO FOR IT!

}

}

Is that what you need? 

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...