Hi All,
I am trying to do something that should be simple, but think I am just not seeing the answer.
I have a List with several strings.
I would like to bind it to a DevExpress DXGrid.
It appears that the grid is showing the correct number of row, but not displaying my text.
I am using the MVVm patern and have seperated my ViewModel and View.
Thanks for the help.
Here is the XAML code:
<dxg:GridControl Grid.Row="0" DataSource="{Binding Path=ErrorLog}" >
<dxg:GridControl.Columns>
<dxg:GridColumn Header="Error Log" AllowEditing="False" />
</dxg:GridControl.Columns>
<dxg:GridControl.View>
<dxg:TableView NewItemRowPosition="None" />
</dxg:GridControl.View>
</dxg:GridControl>
Here is the View Model Code:
private List<string> _errorLog;
public List<string> ErrorLog
{
get { return _errorLog; }
set
{
_errorLog = value;
OnPropertyChanged("ErrorLog");
}
}