How to debug compile error

Hi

I have generated Master/Details pages, however i now get this compile error:

error CS1061: 'DataGridRowMouseEventArgs' does not contain a definition for 'rID' and no accessible extension method 'rID' accepting a first argument of type 'DataGridRowMouseEventArgs' could be found (are you missing a using directive or an assembly reference?)

How does one debug this?

Xarion

Some more info on the above...
the problem only occurs when creating a Master/Detail DataGrid, Master/Detail Hierarchy is no problem.

Xarion

You can compile the project in visual studio to get the exact error location in code.

I'm getting the same error. Debugging isn't the issue. When you put in an attempted fix, Radzen replaces the code when you attempt to run the project.

Here is the error I'm receiving:
|Error|CS1061|'DataGridRowMouseEventArgs' does not contain a definition for 'Id' and no accessible extension method 'Id' accepting a first argument of type 'DataGridRowMouseEventArgs' could be found (are you missing a using directive or an assembly reference?)|VendorSignInLog|C:\Development Projects\Blazor\VendorSignInLog\server\Pages\Visit.razor.designer.cs

Here is the code from VS:
protected async System.Threading.Tasks.Task Grid0RowDoubleClick(DataGridRowMouseEventArgs<VendorSignInLog.Models.ByVendorSil.Visit> args)
{
await DialogService.OpenAsync("Edit Visit", new Dictionary<string, object>() { {"Id", args.Id} });
}

Has anyone solved this? I'm kind of dead in the water with my project right now.

1 Like

DataGridRowMouseEventArgs is an object that does not include "Id" as a property and that is why you get the error.

However, i see what you are trying to do. If you want to access the object on the row you clicked on you have to use "args.Data" and in your case you want to change "args.Id" to "args.Data.Id" if you have a property on the object that is called "Id" :slight_smile:

1 Like

Last night's update has resolved my problem.