在配置文件中用于样式化列标头的数据不存在或已经丢失
这样的问题如何解决?
所涉及代码如下:
private void Formtest_Load(object sender, System.EventArgs e)
{
this.lvTest .SchemaFileName = Config.PathConfig +"FAMS.xml";
this.lvTest .InitializeColumnHeaders("TableName='f_test'");
this.lvTest .ID="id";
DataOther m_Data = new DataOther (Config.CntString );
DataTable dtOther = m_Data.TExecSQLTableDirect("SELECT * FROM f_other");
this.lvTest .FillData (dtOther);
}
private void button1_Click(object sender, System.EventArgs e)
{
DataOther m_Data = new DataOther (Config.CntString );
DataTable dtOther = m_Data.TExecSQLTableDirect("SELECT * FROM f_other where id >10");
this.lvTest .FillData (dtOther);
}