MengeleStefan Posted June 21, 2007 Report Share Posted June 21, 2007 Hello, 2 questions: 1. is it possible to showstrings in datagrid?? In my application i will show whether a usertrained with the armtrainer oder legtrainer of his hometrainer. I will show a "A" for Armtrainier and "L" for Legtrainer like in the attached image but i can't fill a series with letters? 2. How can i show a time oder a date in the datagrid (not in datagrid header) ?? I will show a duration of a training (min:sec) in the chart(but hidden) and in the datagrid like in the attached image?? The attached image shows my chart. The chart includes 25 series. But only 4series are not hidden. The titels in the chart are deleted. Thank you for help, Best Regards, Mengele Stefan file:///C:/DOKUME%7E1/MENS/LOKALE%7E1/TEMP/moz-screenshot.jpg Link to comment Share on other sites More sharing options...
MengeleStefan Posted June 21, 2007 Author Report Share Posted June 21, 2007 I use chart fx for visual studio 2005 Link to comment Share on other sites More sharing options...
JuanC Posted June 21, 2007 Report Share Posted June 21, 2007 Unfortunately it is not possible to show anything other than the chart's data in the datagrid. I am afraid you might have to turn off our datagrid and use a WinForms/WebForms grid bound to the same datasource. JuanC Link to comment Share on other sites More sharing options...
MengeleStefan Posted June 22, 2007 Author Report Share Posted June 22, 2007 Hello, and thank you for your answer! if i create my owndatagrid i need some information about the position the chart to alignmy grid like the image of my first entry. 1. How can i get the location from the chart (not the total width or height) like the blue cross in the image 2. Or how can i get the width of the chart (red line in the image) Best Regards, Mengele Stefan Link to comment Share on other sites More sharing options...
Frank Posted June 22, 2007 Report Share Posted June 22, 2007 You can use: int left = chart.AxisX.ValueToPixel(0.5); int right = chart.AxisX.ValueToPixel(Chart1.Data.Points - 0.5); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.