October 2008 Entries
I have some sql 2005 databases I need to maintain on a web hosts sql server. I was able to connect to the sql server fine with sql management studio 2008 but when I tried to expand the databases like I got an error like this. I found this connect item which explains how to fix the issue http://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=354291 This seems to be similar to SSMS Object Explorer issue discussed here:http://forums.microsoft.com/msdn/showpost.aspx?postid=3531315&isthread=false&siteid=1&sb=0&d=1&at=7&ft=11&tf=0&pageid=0Please try using the following workaround and let us know if that helps:1) Bring Object Explorer Details window by selecting View -->...
Link to slides and sample code for Silverlight Databinding presentation given at the South West Florida Code Camp Sept 2008 Orlando Sql Saturday Oct 2008 http://www.vb-tips.com/downloads/Silverlightdatabinding.zip
Silverlight 2 does not come with a context menu control. You could always handle the html document's oncontextmenu event and open a popcontrol to use as a context menu. This sample should help you get started. <UserControl x:Class="SilverlightContextMenu.Page"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300">
<Grid>
<Rectangle x:Name="LayoutRoot" Fill ="Green" ></Rectangle >
<Popup x:Name="menu">
<StackPanel>
...
In Silverlight 2 Beta 2 DataGrid had a CommittingEdit event which was a great event to update the data in an ado.net dataservice. Unfortunately this event was removed in the RC0 of the datagrid. As a work around Jonathan Shen suggested using a template column and using the LostFocus event to update your dataservice data.
<data:DataGridTemplateColumn Header="Command">
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding FirstName}"></TextBlock>
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
<data:DataGridTemplateColumn.CellEditingTemplate>
<DataTemplate>
<TextBox Text="{Binding FirstName}" LostFocus="TextBox_LostFocus"></TextBox> //you can detect other events.
</DataTemplate>
</data:DataGridTemplateColumn.CellEditingTemplate>
</data:DataGridTemplateColumn>
Well this works fine but I don't want to have to define all my columns this way. Sometimes it is nice...