Hi,
I had a working grid which i could insert/edit/update with the default options. I have added a combo box with the following code. Since then the form works to view and it adds new records brilliantly but it just does nothing when i click on the edit button of the row. If i take out the selectedvalue property it will allow you to edit but it will not update the database. I am using a LinqDataSource with my Grid and a second LinqDataSource for the values in the combo box, all automatic, no background coding.
Any help would be appreciated.
Thanks,
Daniel
I had a working grid which i could insert/edit/update with the default options. I have added a combo box with the following code. Since then the form works to view and it adds new records brilliantly but it just does nothing when i click on the edit button of the row. If i take out the selectedvalue property it will allow you to edit but it will not update the database. I am using a LinqDataSource with my Grid and a second LinqDataSource for the values in the combo box, all automatic, no background coding.
| <telerik:GridTemplateColumn HeaderText="Campus"> |
| <ItemTemplate> |
| <%#Eval("Campus") %> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadComboBox ID="CampusCombo" runat="server" DataSourceID="CampusData" |
| DataTextField="CampusName" DataValueField="CampusName" |
| Selectedvalue='<%#Bind("Campus")%>'> |
| </telerik:RadComboBox> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
Any help would be appreciated.
Thanks,
Daniel