显示的段代码为
using System;
using SystemCollectionsGeneric;
using SystemComponentModel;
using SystemData;
using SystemDrawing;
using SystemText;
using SystemWindowsForms;
using SystemCollections;
using SystemIO ;
public partial class gzxxwh : Form
{
int UpNodeId; //上一级节点编号
private void gzxxwh_Load(object sender, EventArgs e)
{
//1、把system,xianxiang,resouce表填充到数据集
//2、显示表单初始内容
thissystemTableAdapter1Fill(leidaDataSet1system);
hisxianxiangTableAdapter1FillleidaDataSet1xianxiang);
thisresourceTableAdapter1Fill(leidaDataSet1resource);
}
/// <summary>
/// exit
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void systemNameComboBox_SelectedIndexChanged(object sender, EventArgs e)
{
//选择分系统。选择之后相关的初始故障信息投影到所选系统内,且只显示isStart=1的初始故障信息
//任务: 1、上级节点设为零,即数据网格显示的是所选分系统初始故障信息,<--,-->两个按钮隐藏
// 2、启用数据网格,过滤数据填充数据网格
// 3、清空后重写提示信息,写跟踪信息
UpNodeId = 0;
thisbutton8Visible = false;
thisbutton9Visible = false;
thisxianxiangDataGridViewEnabled = true;
DataView dv1=new DataView ();
dv1Table = leidaDataSet1xianxiang;
dv1RowFilter = "SystemId=" + thissystemNameComboBoxSelectedValueToString()+" and "+"isStart=1";
thisxianxiangDataGridViewDataSource = dv1;
thisxianxiangDataGridView Columns[0]HeaderText ="编号";
thisxianxiangDataGridView Columns[1]HeaderText ="故障现象";
thisxianxiangDataGridView Columns[2]HeaderText ="是否为初始现象";
thisxianxiangDataGridView Columns[3]HeaderText ="是否排查终止";
thisxianxiangDataGridView Columns[4]HeaderText ="结果信息";
thisxianxiangDataGridView Columns[5]HeaderText ="上级节点编号";
thisxianxiangDataGridView Columns[6]HeaderText ="分系统编号";
thisxianxiangDataGridView Columns[7]HeaderText ="";
thislabel10Text = "1、选择"+thissystemNameComboBoxText +"分系统的故障诊断息";
thislistBox1ItemsClear();
thislistBox1ItemsAdd("开始-->" + thissystemNameComboBoxText);
}
private void xianxiangDataGridView_RowEnter(object sender, DataGridViewCellEventArgs e)
{
thistabControl2Enabled = true;
thistextBox9Text = xianxiangDataGridViewRows[eRowIndex]Cells[0]ValueToString();
thistextBox5Text =
以上就是关于C# access数据库 怎么让datagridview显示数据库中数字型0和1 显示为“是”和“否”全部的内容,包括:C# access数据库 怎么让datagridview显示数据库中数字型0和1 显示为“是”和“否”、、等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)