Display data from database to silverlight datagrid dynamically

Posted by Sudhak under Silverlight on 5/3/2010 | Views : 10673 | Status : [Member] | Replies : 4
Hi ,
I want to display data from database in silverlight datagrid. the data consists of text, images,dates...

Can you please provide any code.

Thanks,
Sudha




Responses

Posted by: Vuyiswamb on: 5/3/2010 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Look at this
http://www.silverlight.net/learn/tutorials/adonetdataentities-cs/



Thank you for posting at Dotnetfunda
[Administrator]

Sudhak, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sudhak on: 5/3/2010 [Member] Starter

Up
0
Down
Hi,

Thanks for your response.I have done in the manner which was mentioned in the tutorial but the images are not displayed in the silverlight datagrid.Instead it displays {CustomDatagrid.ServiceReference1.Binary}
.,i.e applicationname.servicename.binary
Can you please tell how images can be displayed.

Regards,
Sudha


Sudhak, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Er.deepakdalal on: 5/3/2010 [Member] Starter

Up
0
Down
Hi Sudhak

Try these link for image binding in silverlight datagrid

http://forums.silverlight.net/forums/p/110710/322204.aspx

or

http://www.dotnetspider.com/forum/206393-Binding-images-datagrid-from-database-using-silverlight.aspx

Sudhak, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naveenmanam on: 5/4/2010 [Member] Starter

Up
0
Down
I tried doing that on a column that I am just wrapping the header. The theme settings are still getting blown away. So, on any column that has a header that i have wrapping on, theme coloring etc is not applied. So, i end up with some column headers that have coloring and some that dont which isnt good. My xaml:



<data:DataGridTemplateColumn.HeaderStyle>

<Style TargetType="dataprimitives:DataGridColumnHeader">

<Setter Property="ContentTemplate">

<Setter.Value>

<DataTemplate>

<TextBlock Text="{Binding}" TextWrapping="Wrap" />

</DataTemplate>

</Setter.Value>

</Setter>

</Style>

</data:DataGridTemplateColumn.HeaderStyle>

NaveenKumar

Sudhak, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response