I am new to Silverlight and have to create a silverelight application in IronPython.
any body please tell me how i can use C1 datagrid in xaml.
or
any other way of example please to do this
Creating a C1DataGrid in XAML is just like creating any other control (and does not depend on the language you're using AFAIK).
Here's a sample. Notice the "xmlns" statement that brings the DataGrid assembly into the context of the page.
<UserControl x:Class="JustAGrid.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1_data="clr-namespace:C1.Silverlight.DataGrid;assembly=C1.Silverlight.DataGrid" Width="800" Height="600"> <Grid x:Name="LayoutRoot" Background="White"> <c1_data:C1DataGrid x:Name="_grid" AutoGenerateColumns="True" /> </Grid></UserControl>
I hope this helps.
Thank's to your quick reply, but this is not working for me.I am getting the following error.
SystemError:
The tag 'C1DataGrid' does not exist in XML namespace 'clr-namespace:C1.Silverlight.DataGrid;assembly=C1.Silverlight.DataGrid'.
I am sending the full code (in XAML) which i am writing at notepad calling in Ironpython code
Did you add a reference to the C1.Silverlight.DataGrid assembly to your project?