I only converted your original C# example which must be for a Windows Forms dataGridView control instead of a WPF dataGrid control which is different. The WPF dataGrid control does not have a Rows property as the error indicates. What type of application are you creating, WinForms, WPF, ASP.NET?
↧