JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › How to get selected row data in Blazor › Reply To: How to get selected row data in Blazor
April 6, 2021 at 4:31 pm
#101688
Member
Hi Riyaz Qureshi,
Here is another approach with which you can get the “First Name” for example using the same example as my first reply but with some
changes that you can see in the code snippet below
<Grid DataSource="dataRecords" Appearance="@appearance" Selection="@selection" OnRowClick="GridRowClicked">
@code {
//rest of the code
private void GridRowClicked(Event eventObj)
{
GridRowClickEventDetail detail = eventObj["Detail"];
eventLog += "Row clicked Column " + detail.Row.data.FirstName + " ";
}
}
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team
https://www.htmlelements.com/