下拉列表绑定查询的内容:
DataTable dt = CustomQuery.GetTrackInResourceByWipData(Page, _ndoWIPDataSetup.Data.ToString(), _txtObjectName.Data.ToString());
if (dt != null && dt.Rows.Count > 0)
{
OM.RecordSet rsNamedObject = new OM.RecordSet();
OM.Header[] rsHeaders = new OM.Header[1];
OM.Row[] rsRows = new OM.Row[dt.Rows.Count];
rsHeaders[0] = new OM.Header();
rsHeaders[0].TypeCode = TypeCode.String;
rsHeaders[0].Name = "Name";
rsNamedObject.Headers = rsHeaders;
for (int x = 0; x <= dt.Rows.Count - 1; x++)
{
rsRows[x] = new Row();
string[] strRowValues = new string[1];
strRowValues[0] = dt.Rows[x]["ResourceName"].ToString();
rsRows[x].Values = strRowValues;
}
rsNamedObject.Rows = rsRows;
_ndoResource.SetSelectionValues(rsNamedObject);
}