aspnet-devexpress-dot-web-a75778ac.md
Provides data for the editor’s ItemRowPrepared event.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public class ListBoxItemRowPreparedEventArgs :
EventArgs
Public Class ListBoxItemRowPreparedEventArgs
Inherits EventArgs
ListBoxItemRowPreparedEventArgs is the data class for the following events:
Objects of the ListBoxItemRowPreparedEventArgs type are used as arguments for the editor’s ItemRowPrepared event generated on the server side.
ListBoxItemRowPreparedEventArgs objects with proper settings are automatically created and passed to the corresponding event handlers.
Web Forms:
<dx:ASPxListBox ID="ASPxListBox1" runat="server"
OnItemRowPrepared="ASPxListBox1_ItemRowPrepared" DataSourceID="SqlDataSource1">
<Columns>
...
</Columns>
</dx:ASPxListBox>
...
protected void ASPxListBox1_ItemRowPrepared(object sender, DevExpress.Web.ListBoxItemRowPreparedEventArgs e)
{
...
e.Row.Attributes.Add("attr-name", e.Item.Value.ToString());
}
MVC:
settings.ItemRowPrepared = (sender, e) =>
{
...
e.Row.Attributes.Add("attr-name", e.Item.Value.ToString());
};
Object EventArgs ListBoxItemRowPreparedEventArgs
See Also