Silverlight / WPF - wpf Datagrid Row editing
Asked By Mohamed
24-Jan-11 08:59 AM
Hi all,
i want to edit all columns in first row . Remaining rows i need to edit some of the columns.
Other columns will be read only. How can i set this in wpf datagrid..
Thanks ..
Arif


Robbe Morris replied to Mohamed
In my opinion, the easiest way to do this sort of stuff is to create custom UI oriented properties for your databound class. Then, you can use underlying logic to change the property values which will alter various properties in your UI.
When binding in Silverlight or WPF, you are not restricted to just binding data capture properties. You can bind virtually any XAML attribute/tag to a property on your databound class. Visibility properties, edit properties, colors, etc... If your properties on the class implement the NotifyPropertyChanged interface, your Silverlight/WPF will dynamically adjust as class property values change.

Binding data from sql server to silverlight grid Hi, Im very new to silverlight. How we can fetch data from sql server and binding to silverlight grid. . Please help me in this regard. Thanks. HI refer this example http: / / www.codeproject.com / KB / silverlight / Silverlight3_SQL_WCF.aspx HI here is the example The DataGrid image refer the link for details http: / / odetocode.com / code / 740.aspx Introduction Silverlight 3 is by far, the coolest technology for web programming! I’m so excited about Silverlight 3! I hope I can share some things with you here that will help you get up and running with Silverlight 3 and SQL Server Data bases. This article walks you through displaying data from an SQL Server Data base in a Silverlight 3 application. There are three technologies that will be used in this example, which are
Two Xaml page Hi, I want to show two silverlight control on single aspx page. How i can do this. . You need to create two Silverlight project and do like this: In WebForm1: <object data = "data:application / x-silverlight-2, " type = "application / x-silverlight-2" width = "100%" height = "100%"> <param name = "source" value = " ClientBin / SilverlightApp1.xap" / > In WebForm2 <object data = "data:application / x-silverlight-2, " type = "application / x-silverlight-2" width = "100%" height = "100%"> <param name = "source" value = " ClientBin / SilverlightApp2.xap " / > both page1.xaml and page2.xaml control on either webform1.aspx or webform2.aspx A solution is that
how to Add TabItem Scrollviewer in TabControl for silverlight 4 in silverlight tabcontrol how to add tabitem scrollviewer. when no. of tab item added the tabitem overflow. but i want a tab item scrollviewer. plz help Tab Control in Silverlight Silverlight tab control is very easy to use. Drag and drop the control on xaml page. You can change various property of tab control like height, width, background etc. It TabControl > In the above example we used stackpanel inside tab item. Now we can load xaml page in stack panel. There is various ways to code with tab control. http: / / stackoverflow com / questions / 5690594 / want-to-make-scrollable-tabs-for-a-tabcontrol Follow this example- ScrollableTab.xaml.cs [StyleTypedProperty(Property = "TabLeftButtonTopStyle", StyleTargetType = typeof(RepeatButton)), StyleTypedProperty(Property = "TabRightButtonTopStyle", StyleTargetType = typeof(RepeatButton)), TemplatePart(Name typeof(RepeatButton)), TemplatePart(Name = "TabScrollViewerTop", Type = typeof(ScrollViewer)), TemplatePart(Name = "TabPanelTop", Type = typeof(TabPanel))] public class SlidingTabControl : System.Windows.Controls.TabControl { private RepeatButton tabLeftButton; private RepeatButton tabRightButton; private ScrollViewer tabScrollViewer; private
using silverlight controls in asp.net Hi, I am very new to silverlight technology, i want to add silverlight controls in asp.net form. . .please give me an idea how to do this. . . . i am using visual studio 2010 Latest Microsoft RIA platform, Silverlight is amazing. The Silverlight 2 Software Development Kit (SDK) Beta 2 includes two ASP.NET server controls. • MediaPlayer control as audio (WMA) and video (WMV) into a Web site, without requiring any knowledge of XAML or JavaScript • Silverlight control . The ASP.NET Silverlight control enables you to integrate XAML and any supporting code (a managed-code assembly, a
XAML Organizer XAML Organizer is a Visual Studio 2008 add-in for organizing your XAML code. Introduction Most of the time, I would make my XAML code look neater by fixing the indentation of elements and attributes, and removing unused namespaces I always remove these namespaces when I notice that they are not in use. The XAML Organizer add-in tries to address these common problems. Here is a screenshot of the add-in. Figure 1. XAML Organizer Screenshot This add-in can do the following: remove unused namespaces, sort attributes, and fix format. It is important to note that each command only works when the XAML is valid because I used LINQ to XML to parse the XAML. To better understand what these commands do, let’s try to use the add-in