TeeChart控件下载,不能数据绑定问题!

jpusaddam 2003-08-21 06:22:41
刚下载了TeeChart控件,页面已经生成了数据集,在属性对话框里不能绑定DATASET ,在它自己提供的EDIT里,我在页面上生成的DATASET也没有在它的DATASET下拉列表中出现,在 Codebehind里,TeeChart对象也没有DATASOURSE属性!

希望用过了TeeChart控件的大人能帮忙!!
...全文
586 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
heybaby 2004-02-17
  • 打赏
  • 举报
回复
其实我是用的 AX 5 的版 我没有用他的 console 来绑定数据,只是靠代码来绑定的 具体的代码你可以参考我上面的,至于.net 里面的我不会所以没有研究过 :) sorry
NekChan 2004-02-17
  • 打赏
  • 举报
回复
贴一段Gantt图的程序给你,你可以参考参考!
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;

using System.Windows.Forms;


namespace Steema.TeeChart.Samples
{
public class SeriesType_Gantt : Samples.BaseForm
{
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Button button1;
private Steema.TeeChart.Styles.Gantt ganttSeries1;
private System.ComponentModel.IContainer components = null;

public SeriesType_Gantt()
{
// This call is required by the Windows Form Designer.
InitializeComponent();

ganttSeries1.FillSampleValues(10);
}

/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}

#region Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button();
this.ganttSeries1 = new Steema.TeeChart.Styles.Gantt();
this.panel1.SuspendLayout();
//
// textBox1
//
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(466, 72);
this.textBox1.Text = "For scheduling applications, the Gantt chart style allows points with start and e" +
"nd dates.\r\n\r\nOptions include point style, label, marks, color, border, pattern, " +
"drag and drop of bars, connecting lines, click events, etc.";
//
// panel1
//
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.checkBox1);
this.panel1.Location = new System.Drawing.Point(0, 72);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(466, 41);
//
// tChart1
//
//
// tChart1.Header
//
this.tChart1.Header.Lines = new string[] {
"Gantt - Scheduling"};
this.tChart1.Location = new System.Drawing.Point(0, 113);
this.tChart1.Name = "tChart1";
this.tChart1.Series.Add(this.ganttSeries1);
this.tChart1.Size = new System.Drawing.Size(466, 173);
//
// checkBox1
//
this.checkBox1.Checked = true;
this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked;
this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.checkBox1.Location = new System.Drawing.Point(20, 7);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(52, 21);
this.checkBox1.TabIndex = 0;
this.checkBox1.Text = "&3D";
this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
//
// button1
//
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(113, 7);
this.button1.Name = "button1";
this.button1.TabIndex = 5;
this.button1.Text = "&Edit...";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// ganttSeries1
//
this.ganttSeries1.ColorEach = true;
//
// ganttSeries1.Pointer
//
//
// ganttSeries1.Pointer.Brush
//
this.ganttSeries1.Pointer.Brush.Color = System.Drawing.Color.Red;
this.ganttSeries1.Pointer.Brush.ForegroundColor = System.Drawing.Color.Empty;
//
// ganttSeries1.XValues
//
this.ganttSeries1.XValues.DateTime = true;
//
// SeriesType_Gantt
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(466, 286);
this.Name = "SeriesType_Gantt";
this.panel1.ResumeLayout(false);

}
#endregion

private void checkBox1_CheckedChanged(object sender, System.EventArgs e)
{
tChart1.Aspect.View3D = checkBox1.Checked;
}

private void button1_Click(object sender, System.EventArgs e)
{
TeeChart.Editors.SeriesEditor.ShowEditor(this.ganttSeries1);
}
}
}

jpusaddam 2004-02-16
  • 打赏
  • 举报
回复
首先谢谢楼上地 NekChan(小猪) ; 不过我装了正式版以后依然有问题!

问题见 http://www.gdren.com/liyao/why.gif

问题一解决就放分,来地人都有! 分不够可以再加!
健者天行 2004-02-11
  • 打赏
  • 举报
回复
谢谢楼上
NekChan 2004-02-11
  • 打赏
  • 举报
回复
正式版有完全的代码帮助。
Customer: H908703
Linense : 8879079
Password: 847143614818170
heybaby 2004-02-11
  • 打赏
  • 举报
回复
<%
Set Conn=Server.CreateObject("ADODB.Connection")
Set Rst=Server.CreateObject("ADODB.Recordset")
conn.Open "Provider=SQLOLEDB;Data Source=win2000;Initial Catalog=Northwind;User ID=sa;Password=lgj1012;"
strsql = "select top 10 shipcity,Customerid,freight from orders where freight>50 and freight<120 "
Rst.Open strsql,conn,1,1

..
...
...
...
..
'-----------------数据获取部分---------------
TChart1.Series(0).Datasource=rst
TChart1.Series(0).LabelsSource="Customerid"
TChart1.Series(0).Yvalues.valueSource="freight"

%>
curdle 2003-12-10
  • 打赏
  • 举报
回复
我是在winForm中用的teechart,我没有绑定数据集。
在他的demo中有绑定的例子啊,我想应该在form中是可以的。
你是在web中吧,这个我没有做过,不好意思
jpusaddam 2003-09-13
  • 打赏
  • 举报
回复
呵呵 都一个月了终于有人来过问了!
现在TEECHART网站有免费测试版本下呀!
不过要先到他的网站上注册。
是免费的!
网站是http://www.teechart.com/
注:我昨天在DELPHI里用TEECHART都一切正常,不过在DELPHI里用的是TEECHART FOR DELPHI
hongyanlai 2003-09-11
  • 打赏
  • 举报
回复
在哪里下在的啊!我下在的都过期了!有没有解密版的TeeChart?
jpusaddam 2003-08-21
  • 打赏
  • 举报
回复
自己UP!

62,047

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧