I have used linqDataSource and a RadGrid.
I have fetched the data from the table and every thing is done.
The peimary key is ProductID.
So in Edit mode it is the first field. And it is Editable.
It must not be editable. What to do?
My Code is:
<
body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server"/>
<asp:LinqDataSource runat="server" ID="LinqDataSource1" ContextTypeName="AntoClassesDataContext"
TableName="M_Product" EnableDelete="True" EnableInsert="True" EnableUpdate="true">
</asp:LinqDataSource>
<telerik:RadGrid Skin="WebBlue" AutoGenerateDeleteColumn="true" AutoGenerateEditColumn="true" GroupingEnabled="true" ShowGroupPanel="true" runat="server" DataSourceID="LinqDataSource1" AllowAutomaticDeletes="true" AllowAutomaticInserts="true"
AllowAutomaticUpdates="true" AllowPaging="true" PageSize="8" AllowSorting="true"
AllowFilteringByColumn="true" ID="RadGrid1">
<MasterTableView DataKeyNames="ProductID" CommandItemDisplay="Top">
</MasterTableView>
<ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true">
</ClientSettings>
</telerik:RadGrid>
</div>
</form>
</body>
Thank you for your help.
-Anto