This question is locked. New answers and comments are not allowed.
Hi,
How can I access a Silverlight GridView control in a static class that I am using as a helper class. I do not want to pass it as a method parameter from the Main.xaml.cs page (since this method is an event handler, I want to keep with the same signature).
I am unable to get the GridView's items using MyRadGridView.Items (Code below)
Thanks in advance for you help.
Cheers,
Nadeem.
public static void Hello(object sender, EventArgs e) |
| { |
| //I wasnt to get something like this |
| try |
| { |
| foreach (var dataItem in MyRadGridView.Items) |
| { |
| var firstRow = MyRadGridView.ItemContainerGenerator.ContainerFromItem(dataItem) as GridViewRow; |
| // some code |
| } |
| } |
| } |