public class myData : IEditableobject
{
public string name { get; set; }
public Int32 age {get;set;}
public string value { get; set; }
...
}
-- Design time
1. I have created myBindingSource for MyData and linked it to DataSource of sfDataGrid.
2. I created columns of sfDataGrid and set MappingName to property name of MyData.
3. I added some code.
List arr = new List();
private void Form1_Load(object sender, EventArgs e)
{
//add sample data
arr.Add( new myData(){ name = "Hell2o", age = 32, value = "hasdjasd" });
arr.Add( new myData(){ name = "Hello3", age = 12, value = "hasdjasd" } );
arr.Add(new myData() { name = "Hello4", age = 13, value = "hasdjasd" });
myDataBindingSource.DataSource = arr;
}
myDataBindingSource is connected to DataGridView control too.
When I run the project, sfDataGrid does not show any data but DataGridView shows all data.
I know I can do it with code but I don't want to add code for visual property setting.
I'd like to finish visual design in ide as possible as I can.
I tried GridGroupingControl but it does not have RowValidation event.