C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




silverlight datagrid control beta 2


Posted Date: 23 Jun 2008      Total Responses: 3

Posted By: Thilagavathi       Member Level: Bronze     Points: 1



I need code for the following functionalities in Datagrid

add,edit,delete
Freeze columns
Master /detail scenario
Group view



Thanks,
Thilaga





Responses

Author: R.Bharath Kumar    23 Jun 2008Member Level: GoldRating:     Points: 3

hi

im working in .net2005 environment i installed silverlight1.1 but in template not reflected ex. v can see AjaxEnabledWebsite.wat to do can u tell me how to install plz.last one week im trying but i cant

thanks



Author: Thilagavathi    28 Jun 2008Member Level: BronzeRating:     Points: 2

Hi Bharath,

silverlight application can run only in .net 2008 environment.
So get install first .net 2008 in ur system.


Thanks,
thilaga



Author: Muthaiah Thiagrajan    23 Jul 2008Member Level: BronzeRating:     Points: 6

Hi thilaga,

I cannot get you the code.But i can give you the idea to do that.
As i understand you are using datagrid control. Until now , i never had seen edit update options on datagrid within silverlight.

First of all you will using db like sql server and retrieve data asynchronously inside silverlight.So i suggest you create store procedure in LINQ or SQL.Call that as service reference on to the silverlight project.

Now add references to get datagrid on XAML page.Then create a datagrid control.

with <DataGrid AutoGenerateColumns = "False" ItemSource="{Binding}" >
<data:DataGrid.Columns>
<data:DataGridTemplateColumn Header="S.No.">
<data:DataGridTemplatecolumn.CellTemplate>
<DataTemplate>
<TextBlock ................... Text={Binding sno} ></TextBlock>
</DataTemplate>
</data:DataGridTemplatecolumn.CellTemplate>
<data:DataGridTemplatecolumn.CellTemplate>
<DataTemplate>
<Button ................... Text="Edit" MouseLeftButtonDown="Button_click" ></Button>
</DataTemplate>
</data:DataGridTemplatecolumn.CellTemplate>
</data:DataGridTemplatecolumn>
</data:DataGrid.Columns>

Now on click of the button call the service reference of the storeprocedure which deletes that particular column.

similarly create buttons and create click event to edit and update.

soon i will put a video in my site regarding this.currently i am creating my site named www.fmass.in.Still under construction, now u won't find any tutorials.But, You will find a video tutorial regarding this sooner.

Nice Question!though!

I hope i gave the complete idea and certain amount of code for this Question.

Regards,
Muthaiah,EMC.



Post Reply
You must Sign In to post a response.
Next : how to use
Previous : Silverlight
Return to Discussion Forum
Post New Message
Category: Silverlight

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use