Hello everyone,
I read the most topics with a similiar problem but nothing had worked for me.
I use WPF with MVVM and have a RadGridView. The binding from my Xaml code is with a button and a CommandParameter that passes the RadGridView to my method.
The Code looks like this
private void LoadData(object obj)
{
RadGridView rad = obj as RadGridView;
GridViewDataColumn col = new GridViewDataColumn();
col.DataMemberBinding = new System.Windows.Data.Binding("Name");
col.Header = "Name";
rad.Columns.Add(col);
//How to add now a new row to this?
}
How can I add now a new Raw with code? Something like rad.Rows.Add() does not exist.
Hope anybody can help me :-)