yearly leave calendar

Posted by Kalyani under Silverlight on 3/9/2010 | Views : 2353 | Status : [Member] | Replies : 4
Hi All,
How to bind data to a datagrid for retrieving the output in a yearly leave calendar... and give sample projects

Thanks




Responses

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

Up
0
Down
Good Day

Can you please explain exactly what you want. remember we dont work on your project and we dont know what is it all about. Please explain clearly what you want.



Thank you for posting at Dotnetfunda
[Administrator]

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

Posted by: Kunal2383 on: 3/9/2010 [Member] Starter

Up
0
Down
Hi Kalyani,

Can you please elaborate your problem statement, so that, we can give answer to your query.

Thanks & Regards,
Kunal Chowdhury | http://www.kunal-chowdhury.com | http://twitter.com/kunal2383

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

Posted by: Kalyani on: 3/9/2010 [Member] Starter

Up
0
Down
I have yearly leave calendar displaying months vertically and dates(1-31)horizontally. like i have a grid
<Grid x:Name="grdLeaveDetails" ShowGridLines="false" Background="White" Height="274" Width="482" HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
............................................. </Grid.ColumnDefinitions> .rows <Grid.RowDefinitions>
<RowDefinition Height="Auto"/> </Grid.RowDefinitions>.
<Rectangle Grid.Row="1" Grid.ColumnSpan="32" Fill="SkyBlue" RadiusX="1" RadiusY="1" Height="0.5" Margin="0,21,0,0"/>...................
<TextBlock Grid.Column="1" ><Run Text="01"/></TextBlock>.... <TextBlock Grid.Column="31" ><Run Text="31"/></TextBlock> ...<TextBlock Grid.Column="0" Grid.Row="1" ><Run Text="Jan"/></TextBlock> .... <TextBlock Grid.Column="0" Grid.Row="12" ><Run Text="Dec"/></TextBlock>
<data:DataGrid x:Name="grdLeaveCalender" Margin="-29,0,0,8" Grid.RowSpan="13" HorizontalAlignment="Left" Width="12" >
<data:DataGrid.Columns>
<data:DataGridTemplateColumn>
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<Rectangle x:Name="rectrow" Grid.Column="{Binding ddHolidayDate}" Grid.Row="{Binding mmHolidayDate}" Fill="Violet" ToolTipService.ToolTip="Holiday"/>
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
</data:DataGridTemplateColumn>
</data:DataGrid.Columns>
</data:DataGrid>
</Grid>
am unable bind the data to the datagrid inside a gird... sorry for my Long code and explanation.
I get the leave dates from the database and need to bind the data and fill the rectangles formed accordingly

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

Posted by: Sagarp on: 3/10/2010 [Member] Bronze

Up
0
Down
Hi

check following links

http://www.c-sharpcorner.com/UploadFile/mahesh/SilverlightCalendar11202008201322PM/SilverlightCalendar.aspx

http://www.webdotdev.com/nvd/content/view/2010/

Thanks
SagarP
http://www.emanonsolutions.net
http://emanonsolutions.blogspot.com/

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

Login to post response