Click here to Skip to main content
15,917,808 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to implement polyline in c# Pin
BobJanova6-Oct-11 23:04
BobJanova6-Oct-11 23:04 
GeneralRe: how to implement polyline in c# Pin
Manfred Rudolf Bihy6-Oct-11 23:34
professionalManfred Rudolf Bihy6-Oct-11 23:34 
QuestionMeasuring the time consumed by an Algorithm Pin
Omar Rwemi6-Oct-11 15:07
Omar Rwemi6-Oct-11 15:07 
AnswerRe: Measuring the time consumed by an Algorithm PinPopular
Dave Kreskowiak6-Oct-11 15:33
mveDave Kreskowiak6-Oct-11 15:33 
GeneralRe: Measuring the time consumed by an Algorithm Pin
Omar Rwemi6-Oct-11 15:40
Omar Rwemi6-Oct-11 15:40 
GeneralRe: Measuring the time consumed by an Algorithm Pin
Dalek Dave6-Oct-11 22:29
professionalDalek Dave6-Oct-11 22:29 
GeneralRe: Measuring the time consumed by an Algorithm Pin
Pete O'Hanlon6-Oct-11 22:36
mvePete O'Hanlon6-Oct-11 22:36 
QuestionDataGrid images input Pin
Xarzu6-Oct-11 1:16
Xarzu6-Oct-11 1:16 
I want to put little arrows inside a DataGrid to mimic the kind of display shown in this Excel file:

[IMG]http://i67.photobucket.com/albums/h292/Athono/arrows.png[/IMG]

But the XAML code defines individual columns instead of individual cells:
[code] <data:DataGridTemplateColumn Header="Prev. Mo. Trend" IsReadOnly="True">
<data:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<StackPanel>
<Image x:Name="img1" Width="11" Height="12" VerticalAlignment="Center" HorizontalAlignment="Left"
Source="/MedAnalyzer;component/Assets/greenuparrow.png" Visibility="Visible"/>
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Right" x:Name="Prev_Mo_Trend" Text="{Binding Prev_Mo_Trend}">
</TextBlock>
</StackPanel>
</DataTemplate>
</data:DataGridTemplateColumn.CellTemplate>
</data:DataGridTemplateColumn>[/code]I can add text into the Datagrid by data binding with an observable collection. But this is text data. What about replacing gaphics? Do I need something extra special?

This is the results of my efforts

[IMG]http://i67.photobucket.com/albums/h292/Athono/otherarrows.png[/IMG]

I do not need to have the graphic and the text share the same sell. That part can be overlooked. How can I just replace the arrow with a different error within the cell?
AnswerPersistently ignores the correct forum. Pin
Pete O'Hanlon6-Oct-11 1:21
mvePete O'Hanlon6-Oct-11 1:21 
GeneralRe: Persistently ignores the correct forum. Pin
Xarzu6-Oct-11 10:37
Xarzu6-Oct-11 10:37 
QuestionIs there a way to find out if a query will return data before it is made? I have an unusual problem. My code uses a 3rd party dll to make database calls from my silverlight client to a sql server database. In my code, I make dozens of calls one afte Pin
Xarzu6-Oct-11 1:11
Xarzu6-Oct-11 1:11 
AnswerRe: Is there a way to find out if a query will return data before it is made? I have an unusual problem. My code uses a 3rd party dll to make database calls from my silverlight client to a sql server database. In my code, I make dozens of calls one Pin
Not Active6-Oct-11 2:28
mentorNot Active6-Oct-11 2:28 
GeneralRe: Is there a way to find out if a query will return data before it is made? I have an unusual problem. My code uses a 3rd party dll to make database calls from my silverlight client to a sql server database. In my code, I make dozens of calls one Pin
TheGreatAndPowerfulOz6-Oct-11 7:23
TheGreatAndPowerfulOz6-Oct-11 7:23 
AnswerRe: Is there a way to find out if a query will return data before it is made? I have an unusual problem. My code uses a 3rd party dll to make database calls from my silverlight client to a sql server database. In my code, I make dozens of calls one Pin
Eddy Vluggen6-Oct-11 6:46
professionalEddy Vluggen6-Oct-11 6:46 
QuestionDisplaying an image generated in c++/CLI DLL Pin
eyalbi0076-Oct-11 0:38
eyalbi0076-Oct-11 0:38 
AnswerRe: Displaying an image generated in c++/CLI DLL Pin
BobJanova6-Oct-11 1:05
BobJanova6-Oct-11 1:05 
AnswerRe: Displaying an image generated in c++/CLI DLL Pin
Luc Pattyn6-Oct-11 2:46
sitebuilderLuc Pattyn6-Oct-11 2:46 
QuestionHelp with DriveInfo. VolumeLabel exception please Pin
CCodeNewbie5-Oct-11 22:55
CCodeNewbie5-Oct-11 22:55 
AnswerRe: Help with DriveInfo. VolumeLabel exception please Pin
CCodeNewbie5-Oct-11 23:08
CCodeNewbie5-Oct-11 23:08 
GeneralRe: Help with DriveInfo. VolumeLabel exception please Pin
Pete O'Hanlon5-Oct-11 23:26
mvePete O'Hanlon5-Oct-11 23:26 
AnswerRe: Help with DriveInfo. VolumeLabel exception please Pin
Manfred Rudolf Bihy5-Oct-11 23:17
professionalManfred Rudolf Bihy5-Oct-11 23:17 
GeneralRe: Help with DriveInfo. VolumeLabel exception please Pin
Matt Meyer6-Oct-11 11:20
Matt Meyer6-Oct-11 11:20 
GeneralRe: Help with DriveInfo. VolumeLabel exception please Pin
Pete O'Hanlon6-Oct-11 12:01
mvePete O'Hanlon6-Oct-11 12:01 
Questionc# binary to decimal code -new- Pin
mehmetali_065-Oct-11 19:41
mehmetali_065-Oct-11 19:41 
AnswerRe: c# binary to decimal code -new- PinPopular
Peter_in_27805-Oct-11 20:18
professionalPeter_in_27805-Oct-11 20:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.