Hi Emil,
Thanks for contacting Syncfusion Support.
You can load images to the column using SfDataGrid.GridImageColumn, we have prepared the sample to achieve your requirement and you can download the same from the below link.
Note: In the sample provided, we have referred 14.3.0.49 custom assemblies of SfDataGrid. You can update the custom assemblies by using the Syncfusion nugets if you need.
Please refer the below UG link for more details about the column types in SfDataGrid.
Regarding Scrolling event query:
At present, SfDataGrid does not have any Scrolling event. However, you can achieve this requirement using our internal ScrollChanged event as below.
Please refer the below code example for more details.
dataGrid.GridLoaded += DataGrid_GridLoaded;
private void DataGrid_GridLoaded(object sender, GridLoadedEventArgs e)
{
var container = dataGrid.GetType().GetTypeInfo().GetDeclaredProperty("VisualContainer").GetValue(dataGrid) as VisualContainer;
container.ScrollRows.Changed += ScrollRows_Changed;
}
private void ScrollRows_Changed(object sender, ScrollChangedEventArgs e)
{
// Will be called when the SfDataGrid is scrolled
} |
Regards,
Suhasini