|
<GridColumn Field="@nameof(MyData.Choice)" HeaderText="Choice">
<EditTemplate>
<SfDropDownList ID="Choice" @bind-Value="(context as MyData).Choice" DataSource="@Choices">
</SfDropDownList>
</EditTemplate>
</GridColumn>
|
|
<GridColumn Field="@nameof(MyData.Choice)" HeaderText="Choice">
<EditTemplate>
@{
var a = (context as MyData);
}
<SfDropDownList ID="Choice" @bind-Value="a.Choice" DataSource="@a.Choices">
</SfDropDownList>
</EditTemplate>
</GridColumn>
|
|
<GridColumn Field="SelectedChoice.Name" HeaderText="Choice">
<EditTemplate>
@{
var a = (context as MyData);
}
<SfDropDownList ID="SelectedChoice___Name" @bind-Value="a.SelectedChoice.Name" DataSource="@a.Choices">
<DropDownListFieldSettings Text="Name" Value="Name"></DropDownListFieldSettings>
</SfDropDownList>
</EditTemplate>
</GridColumn>
|
|
<GridColumn Field="@nameof(MyData.Name)" IsPrimaryKey="true" HeaderText="Data Name" />
|