Windows 응용 프로그램입니다. 원래 테이블의 드롭 다운 메뉴에 대한 데이터 집합이 있습니다. 이제 저장 프로 시저를 사용하고 싶습니다. 코드에서 프로세스를 수정하는 방법?테이블에서 저장 프로 시저로 데이터 집합 바인딩 변경
아마도 가장 좋은 방법은 데이터 집합을 삭제하고 새 데이터 집합을 다시 만드는 것입니다. 디자이너 코드에서 할 수 있습니까?
감사합니다.
편집
protected Problem_DE_DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
base(info, context, false) {
if ((this.IsBinarySerialized(info, context) == true)) {
this.InitVars(false);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler1;
this.Relations.CollectionChanged += schemaChangedHandler1;
return;
}
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
global::System.Data.DataSet ds = new global::System.Data.DataSet();
ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
if ((ds.Tables["Problem_DE"] != null)) {
base.Tables.Add(new Problem_DEDataTable(ds.Tables["Problem_DE"]));
}
this.DataSetName = ds.DataSetName;
this.Prefix = ds.Prefix;
this.Namespace = ds.Namespace;
this.Locale = ds.Locale;
this.CaseSensitive = ds.CaseSensitive;
this.EnforceConstraints = ds.EnforceConstraints;
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
this.InitVars();
}
else {
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
}
this.GetSerializationData(info, context);
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
:
당신이 뭔가를해야한다. 나는이 전체 기능을 삭제하고 내 드롭 다운 메뉴를 채울 것입니다 – phadaphunk
당신의 Windows 응용 프로그램에서 제어 무엇입니까? DropDownList 또는 ComboBox? – phadaphunk
대답을 다시 업데이트했습니다 – phadaphunk