julio15 Posted September 20, 2007 Report Share Posted September 20, 2007 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 Quote Link to comment Share on other sites More sharing options...
StephenP Posted September 20, 2007 Report Share Posted September 20, 2007 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? Quote Link to comment Share on other sites More sharing options...
julio15 Posted September 20, 2007 Author Report Share Posted September 20, 2007 It is exactly what I needed. Thank you very much.Is it possible to assign to each Grid a dataset, and in this case, how can I configurate it with the fields that the dataset returns in C#?.Thanks,julio Quote Link to comment Share on other sites More sharing options...
AngelR Posted September 24, 2007 Report Share Posted September 24, 2007 Julio, To assign a Dataset to a grid programmatically, you need to add some code in the Grid Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.