IgbDataGrid Get Selected Row
New DiscussionI'm trying to get the selected row from the IgbDataGrid.
1. First, the onselectionchange event does not appear to be firing?
2. Second once I can get this to fire, I want to get a row column value?
PS: Code blocks do NOT seem to work for HTML code.
<IgbDataGrid @ref="gridCourse"
DataSource=@data
Height="600px" Width="100%"
AutoGenerateColumns="false"
IsRowHoverEnabled="true"
RowHoverBackground="@HighlightColor" SelectionMode="GridSelectionMode.SingleRow"
EditMode=IgniteUI.Blazor.Controls.EditModeType.Row @onselectionchange="OnCourseEditSelectionChanged">
<IgbNumericColumn Field="course_id" HeaderText="Course Id" Width="120" />
<IgbTextColumn Field="course_name" HeaderText="Course Name" />
</IgbDataGrid>
public void OnCourseEditSelectionChanged(EventArgs e)
{
IgbGridSelectedItemsCollection q = gridCourse.SelectedItems;
string test = "1";
}
I'm just guessing as to how to get the selected row / column value since it never enters the code block.
Thanks