or
I have a DockPanel docked to the right in a docking manager.
The DockPanel is AutoHide. When I move the cursor to it and it is opened, the width is very large. Is there a way to set this width?
If I dock the DockPanel the width is what I've set the DockPanel.Size = new Size( width, height) to be.
Regards, Jill-Connie Lorentsen
| public partial class HistoricData : Form |
| { |
| public IOController TheIO { get; set; } |
| public HistoricData() |
| { |
| InitializeComponent(); |
| } |
| public void FillData(List<ChartHistoric> days, string title) |
| { |
| try |
| { |
| rchrtHistoricData.DataSource = days; |
| rchrtHistoricData.ChartTitle.TextBlock.Text = title; |
| rchrtHistoricData.PlotArea.XAxis.DataLabelsColumn = "Month"; |
| rchrtHistoricData.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = -45; |
| rchrtHistoricData.DataBind(); |
| }catch(Exception ex) |
| { |
| Logging.Log.LogMessageToFile("HistoricData.cs -> FillData(List<ChartHistoric> days): " + ex.Message + ex.StackTrace); |
| } |
| } |
| public void FillTreeView(TreeNode overview) |
| { |
| trvMonths.Nodes.Clear(); |
| trvMonths.Nodes.Add(overview); |
| } |
| public void ClearChart() |
| { |
| rchrtHistoricData.DataSource = new List<ChartHistoric>(); |
| rchrtHistoricData.DataBind(); |
| } |
| private void trvMonths_AfterSelect(object sender, TreeViewEventArgs e) |
| { |
| if(trvMonths.SelectedNode == null) return; |
| //ClearChart(); |
| //get the selected historic data for this month or whole year. |
| //data for the whole year |
| if(trvMonths.SelectedNode.Tag.Equals("1")) |
| { |
| FillData(TheIO.GetDataChartHistoricYear(), "Month view"); |
| } |
| if(trvMonths.SelectedNode.Tag.Equals("2")) |
| { |
| FillData(TheIO.GetDataChartHistoricMonth(trvMonths.SelectedNode.Text), "Week view"); |
| } |
| } |
| } |
| public class ChartHistoric |
| { |
| public ChartHistoric(string _month, int _days) |
| { |
| month = _month; |
| days = _days; |
| } |
| private string month; |
| public string Month |
| { |
| get { return month; } |
| set { month = value; } |
| } |
| private int days; |
| public int Days |
| { |
| get { return days; } |
| set { days = value; } |
| } |
| } |
| +----------+-----------------------------+ |
| | Item | Service | |
| | +-----------------------------+ |
| | | Qty | Description | |
| +----------+-----------------------------+ |
| | Oil | 4 | Quarts | |
| +----------+-----------------------------+ |
GridTableHeaderRowElement
header = (grid.GridElement as GridTableElement).TableBodyElement.Children[0] as GridTableHeaderRowElement;
The Children collection is empty. If I DO add dummy columns to the grid to make the headings work then my data rows have mutiple rows. In the example above, a text box appears in a row above the 4 and Quarts columns representing Service which we don't want.