It seems that ToString() is called for every object in datasource with no reason. My problem is that the function is overrided and is time consuming (bad writed).
After some research, i see the line in GridBoundColumn.cs in method OnDataBindColumn
if (item1.DataItem != null && item1.DataItem.ToString() == "Microsoft.SharePoint.WebControls.SPDataSourceViewResultItem")
I do not known why it is necessary, why not item1.GetType().FullName ?
After some research, i see the line in GridBoundColumn.cs in method OnDataBindColumn
if (item1.DataItem != null && item1.DataItem.ToString() == "Microsoft.SharePoint.WebControls.SPDataSourceViewResultItem")
I do not known why it is necessary, why not item1.GetType().FullName ?