Hi Fizal,
Thanks for your update.
Silverlight Grid Control does not export the underlying source as a collection to an object. This can be achieved only by defining an object for the underlying source class and collect the cell values to the object using grid model as follows.
[Code snippet] [C#]
private void Exportbutton_Click(object sender, RoutedEventArgs e)
{
List
Source = new List();
GridModel Gridmodel = this.grid.Model;
for (int i = 0; i < grid.Model.RowCount; i++)
{
griddata rowdata = new griddata();
rowdata.col1 = Gridmodel[i, 0].CellValue.ToString();
rowdata.col2 = Gridmodel[i, 1].CellValue.ToString();
Source.Add(rowdata);
}
}
Please find the attached sample for your reference.
Sample: Silverlight_GridControl1404564019.zip
Let us know if you need any more information.
Thanks
Kamalakannan