| Author: R.Bharath Kumar 23 Jun 2008 | Member Level: Gold | Rating: 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 2008 | Member Level: Bronze | Rating: 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 2008 | Member Level: Bronze | Rating: 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.
|