Reading DataGrid Items from a data bound Silverlight datagird control

Aug 31, 2009 at 8:05 PM

Hi All,

I have a silverlight databound DataGrid control that is bound to a collection of items defined in a specific class. Using the ListView class in White I am able to locate the DataGrid, however the cells are not available. When I debug the test, I can fetch the Rows, but they do not have cells in them. Here is the test.

           // the view shows columns defined in the display name of the document properties.
            var resultsGrid = this._document.Get<ListView>("ResultsSelection");
          
            for (int i = 0; i < expectedValues.Length - 1; i++)
            {
               var cell = resultsGrid.Rows[i].Cells["Title"];
                Assert.IsNotNull(cell);
            }

Any guesses why this does not work?

 

Coordinator
Sep 6, 2009 at 9:37 AM

can you do window.LogStructure and post the results?

Sep 10, 2009 at 4:26 AM

Look at my thread at: http://white.codeplex.com/Thread/View.aspx?ThreadId=67596

I hope this helps.

 

Geremy