This project is read-only.

Reading DataGrid Items from a data bound Silverlight datagird control

Aug 31, 2009 at 9: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"];

Any guesses why this does not work?


Sep 6, 2009 at 10:37 AM

can you do window.LogStructure and post the results?

Sep 10, 2009 at 5:26 AM

Look at my thread at:

I hope this helps.