Starting to use the Grid component and get error about @context when attempting to run example #951
Unanswered
awilsMookie
asked this question in
Q&A
Replies: 1 comment 5 replies
-
@awilsMookie Thank you for trying BlazorBootstrap. Please share the full code of the page along with the exception details. It would be helpful if you could create a GitHub repository with minimal steps to reproduce the issue. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I trying to use the Grid component in some work I am doing and before doing so I'm attempting to run the example. I have a razor component name TestComponent.razor and I place it on the index.cshtml page. When I put basic components on the page (text box, date control, and submit button), I have not issues but when I put the grid control on the component. I get the following error when attempting to debug (build was successful).
CS0103 The name 'context' does not exist in the current context
Here is the code, I am attempting to run....the only difference from the code on the site is that I change the Employees object out for a Persons object. Any help would be appreciated.
@page "/"
<EditForm
@code
{
private IEnumerable persons;
}
Beta Was this translation helpful? Give feedback.
All reactions