Sunday, August 26, 2012

silverlight dataform edit issue

silverlight dataform edit issue

I have the following dataform:

     <toolkit:DataForm    Margin="0,15,0,0" Height="300" Width="400"       Name="dfEdit" CurrentItem="{Binding Path=SelectedItem, ElementName=dgMydataGrid}" LabelPosition="Top" AutoGenerateFields="False" CommandButtonsVisibility="Edit, Commit, Cancel" AutoEdit="False" AutoCommit="False" BeginningEdit="dfEdit_BeginningEdit" EditEnded="dfEdit_EditEnded"> 

Everything is working fine, I press the pencil icon and the item turns to editable mode, I am able to update DB. The problem is that, after submitting dataform, the pencil is still disabled, even if I select any other item on the dataGrid.What could be the problem?Thanks

Answers & Comments...

Answer: 1

My mistake, I entered the following

dfEdit.IsReadOnly = true; 

I did it because I copied from another method where I had to disable dataform

by : user995159http://stackoverflow.com/users/995159




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog