QueryItemSize Event

Occurs whenever an item comes into view and query the item size.
public event QueryItemSizeEventHandler QueryItemSize
Event Data

The event handler receives an argument of type QueryItemSizeEventArgs containing data related to this event. The following QueryItemSizeEventArgs properties provide information specific to this event.

Gets or sets a value indicating whether the event should be handled or not.  
Gets the underlying data of the queried item.  
Gets the index of the item in the Syncfusion.DataSource.DisplayItems collection.  
Gets or sets the size of an item. For vertical orientation, it will be considered as item height. For horizontal orientation, it will be considered as item width.  
Gets the item type of the queried item.  
We can define whether the specified size can be set to the item or not by handling the QueryItemSize event. When the Handled property in the QueryItemSizeEventArgs argument is false, the decided size will not be set to the item.
The following example demonstrates how to wire the QueryItemSize event in SfListView.
listView.QueryItemSize += ListView_QueryItemSize;
private void ListView_QueryItemSize(object sender, QueryItemSizeEventArgs e)
   if (e.ItemIndex == 1)
       e.ItemSize = 300;
       e.Handled = true;

Syncfusion.SfListView.XForms: 18.2451.0.44

See Also