Geting data from a dropdowndatagrid

I have an old app using the first version of Radzen. In that app i hade a dropdowndatagrid and on the change event I could fetch the values i the columns like this

now I'm struggling with this in Blazor Studio and can't get it to work.

I suppose that agrs contains the values that I'm looking for.
The data is load via a stored procedure and the reason for this is that the query is complex.

Thanks

Args are either the value of the property specified as ValueProperty or the whole item if ValueProperty is not specified.

A
so if a have specifid a value property args is empty but if I have not done that args contains the data in the selected item.

Could you please help med with the syntax

protected int perid;

persid = args. ??

You need to cast it to int:
perid = (int)args;

Sorry for another question

I'm trying to get BoatName, FullName and Id and perid. I have basicly tryed everyhthind and I know this is basic C# but stil I cant get it to work

So any sugestions?

If args is the entire object (ValueProperty is not set) you can cast it to your object type and access any property like this:

perid = ((SailtIT.Models.SailItV2DB.ListBoatsNotInSaiIdSp)args).Perid;
1 Like