《项目6简历系统数据库应用.pptVIP

  • 2
  • 0
  • 约1.11万字
  • 约 44页
  • 2016-12-31 发布于北京
  • 举报
3. TextBox与Label控件的数据绑定 此类控件的数据绑定的方法是把要获取的数据显示在 “Text”属性中。通常使用以下两种代码编写方法实现数据 绑定: (1)使用数据集中表的字段直接绑定,如下面的代码: label1.DataBindings.Add(Text, dataset.Tables[0], stuid); textBox1.DataBindings.Add(Text, dataset.Tables[0], stuname); 6.1.3 数据绑定 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. (2)使用BindingSource类型的对象实现数据绑定,如 下面的代码: BindingSource bindingsource = new BindingSource(); bindingsource.DataSource = dataset.Tables[student]; l

文档评论(0)

1亿VIP精品文档

相关文档