- 3
- 0
- 约1.73千字
- 约 3页
- 2022-12-02 发布于上海
- 举报
c#之combox下列列表框与datagridview及datagridviewtextb。
。。
1,在下拉列表框添加项
2,在⽂本框显⽰下拉列表框的不同项
3,显⽰的列表列标题为下拉列表框不同项的内容
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace learncomboxanddatagridview
{
public partial class Form1 : Form
{
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn col1;
public Form1()
{
Ini
原创力文档

文档评论(0)