1

In wpf application I can map data of gridview to my Class eg:

class MyClass{
    string field1;
    string field2;
}

when I save grid data to Database, I can:

for (MyClass m in radGridView1.Items){
// doing
}

How can I do like this in telerik winform?

John Nguyen
  • 711
  • 6
  • 21

1 Answers1

1

I found out solution:

the first one we must set DataSource for gridview: after that we can use like:

foreach (var i in (List<MyClass >)radGridView1.DataSource)
{ 
}
John Nguyen
  • 711
  • 6
  • 21