1
telerik radgrid에서 crud를 수행 할 수 있고 linq에서 엔티티에 이르기까지 데이터가 가능한지 생각하고있었습니다.엔티티에 telerik radgrid 및 linq로 crud
저는 edmx를 사용 중이었고, linq 쿼리 결과로 Radgrid의 DataSource를 설정했습니다.
DatabaseModel.Entities entities = new DatabaseModel.Entities();
RadGrid1.DataSource = from courses in entities.Courses
select new {
courses.CourseName,
courses.CourseCode,
courses.Description
};
RadGrid1.DataBind();
을하고 Radgrid 이런 식으로 선언했다 : 여기 간다
<telerik:RadGrid ID="RadGrid1" runat="server"
AllowAutomaticDeletes="true" AllowAutomaticInserts="true"
AllowAutomaticUpdates="true" AllowPaging="True"
AutoGenerateDeleteColumn="True" EnableHeaderContextMenu="True"
AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateEditColumn="True">
<MasterTableView CommandItemDisplay="Top" >
</MasterTableView>
</telerik:RadGrid>
우리는이 방법을 DB의 내용을 편집 할 수있는 방법이 있나요를? 고마워.