| CategoryRadMultiColumnComboBox.DataSource = _categoriesBindingSource; |
| CategoryRadMultiColumnComboBox.DisplayMember = "CategoryName"; |
| CategoryRadMultiColumnComboBox.ValueMember = "CategoryId"; |
| CategoryRadMultiColumnComboBox.DropDownStyle = Telerik.WinControls.RadDropDownStyle.DropDownList; |
| RadMultiColumnComboBoxElement categoriesElement = CategoryRadMultiColumnComboBox.MultiColumnComboBoxElement; categoriesElement.EditorControl.MasterGridViewTemplate.AutoGenerateColumns = false; categoriesElement.EditorControl.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; categoriesElement.EditorControl.MasterGridViewTemplate.Columns.Clear(); |
| categoriesElement.Columns.Add(CreateGridViewDataColumn("StandardId")); |
| categoriesElement.Columns.Add(CreateGridViewDataColumn("CategoryId")); |
| categoriesElement.Columns.Add(CreateGridViewTextBoxColumn("#", "CategoryNumber", 30, 30)); |
| categoriesElement.Columns.Add(CreateGridViewTextBoxColumn("Name", "CategoryName", 100)); |
| private void StandardRadMultiColumnComboBox_SelectedIndexChanged(object sender, EventArgs e) |
| { |
| RadMultiColumnComboBox cbo = (RadMultiColumnComboBox)sender; |
| _categoriesBindingSource.Filter = String.Format("StandardId = '{0}'", cbo.SelectedValue.ToString()); |
| RadMultiColumnComboBoxElement categoriesElement = CategoryRadMultiColumnComboBox.MultiColumnComboBoxElement; |
| if (categoriesElement.Rows != null && categoriesElement.Rows.Count == 0 && CategoryRadMultiColumnComboBox.SelectedItem != null) |
| { |
| CategoryRadMultiColumnComboBox.SelectedItem = null; |
| CategoryRadMultiColumnComboBox.SelectedValue = null; |
| CategoryRadMultiColumnComboBox.Text = " "; |
| } |
| } |
Hello,
I'm a new developer of winforms.
I'm trying to insert, update and delete records from the following xml file using the treeview control (I'm using the 2009.3.9.1203 version):
"
<?xml version="1.0" encoding="utf-16"?> <uTemplateData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://********************************************"> <GoodData xmlns:dppp2="http://***************************************************************************"> <dppp2:LVPrm> <dppp2:Bnr i:nil="true" /> <dppp2:CCount>2</dppp2:CCount> <dppp2:OSV>8542</dppp2:OSV> <dppp2:ParentId>0</dppp2:ParentId> <dppp2:RMM>2048</dppp2:RMM> <dppp2:bName i:nil="true" /> <dppp2:bFvr>CHK</dppp2:bFvr> <dppp2:customSName></dppp2:customSName> <dppp2:hst>V42</dppp2:hst> <dppp2:mPath i:nil="true" /> <dppp2:nNames xmlns:dppp4="http://********************************************************"> <dppp4:string>MyName</dppp4:string> </dppp2:nNames> <dppp2:nGuids xmlns:dppp4="http://*********************************************************"> <dppp4:string>My2Name</dppp4:string> </dppp2:nGuids> <dppp2:pArch>None</dppp2:pArch> <dppp2:sType>ATUP</dppp2:sType> <dppp2:uUM>false</dppp2:uUM> <dppp2:vtName>5u_4{Counter}</dppp2:vtName> <dppp2:vtType>mor</dppp2:vtType> <dppp2:trIp xmlns:dppp4="http://**********************************************************"> <dppp4:mAd>73111160</dppp4:mAd> <dppp4:mFam>InterNetwork</dppp4:mFam> <dppp4:mHsh>0</dppp4:mHsh> <dppp4:mNmb xmlns:dppp5="http://*********************************************************"> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> </dppp4:mNmb> <dppp4:mScpId>0</dppp4:mScpId> </dppp2:trIp> <dppp2:tCrName>ctii_rl</dppp2:tCrName> <dppp2:tEName>Nwa</dppp2:tEName> <dppp2:tPName>AutoDefault</dppp2:tPName> </dppp2:LVPrm> <dppp2:LVPrm> <dppp2:Bnr i:nil="true" /> <dppp2:CCount>2</dppp2:CCount> <dppp2:OSV>8542</dppp2:OSV> <dppp2:ParentId>0</dppp2:ParentId> <dppp2:RMM>2048</dppp2:RMM> <dppp2:bName i:nil="true" /> <dppp2:bFvr>CHK</dppp2:bFvr> <dppp2:customSName></dppp2:customSName> <dppp2:hst>V42</dppp2:hst> <dppp2:mPath i:nil="true" /> <dppp2:nNames xmlns:dppp4="http://********************************************************"> <dppp4:string>MyName</dppp4:string> </dppp2:nNames> <dppp2:nGuids xmlns:dppp4="http://*********************************************************"> <dppp4:string>My2Name</dppp4:string> </dppp2:nGuids> <dppp2:pArch>None</dppp2:pArch> <dppp2:sType>ATUP</dppp2:sType> <dppp2:uUM>false</dppp2:uUM> <dppp2:vtName>5u_4{Counter}</dppp2:vtName> <dppp2:vtType>mor</dppp2:vtType> <dppp2:trIp xmlns:dppp4="http://**********************************************************"> <dppp4:mAd>7311160</dppp4:mAd> <dppp4:mFam>InterNetwork</dppp4:mFam> <dppp4:mHsh>0</dppp4:mHsh> <dppp4:mNmb xmlns:dppp5="http://*********************************************************"> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> </dppp4:mNmb> <dppp4:mScpId>0</dppp4:mScpId> </dppp2:trIp> <dppp2:tCrName>ctii_rl</dppp2:tCrName> <dppp2:tEName>Nwa</dppp2:tEName> <dppp2:tPName>AutoDefault</dppp2:tPName> </dppp2:LVPrm> </GoodData> </uTemplateData>
"
You see that the above xml is more complex than the xml file which supported the treeview (XMLSerialization demo).
So, I'm asking you as new developer of winforms to help me step by step in order to insert, update and delete records from the above xml.
If the treeview is not intended for supporing such xml files, Please, guide me how to achieve the requirement using another control.
It is appreciated to send me a code with an explaination.
Regards,
Bader
Hello,
I'm a new developer of winforms.
I'm trying to insert, update and delete records from the following xml file using the radgridview control (I'm using the 2009.3.9.1203 version):
"
<?xml version="1.0" encoding="utf-16"?> <uTemplateData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://********************************************"> <GoodData xmlns:dppp2="http://***************************************************************************"> <dppp2:LVPrm> <dppp2:Bnr i:nil="true" /> <dppp2:CCount>2</dppp2:CCount> <dppp2:OSV>8542</dppp2:OSV> <dppp2:ParentId>0</dppp2:ParentId> <dppp2:RMM>2048</dppp2:RMM> <dppp2:bName i:nil="true" /> <dppp2:bFvr>CHK</dppp2:bFvr> <dppp2:customSName></dppp2:customSName> <dppp2:hst>V42</dppp2:hst> <dppp2:mPath i:nil="true" /> <dppp2:nNames xmlns:dppp4="http://********************************************************"> <dppp4:string>MyName</dppp4:string> </dppp2:nNames> <dppp2:nGuids xmlns:dppp4="http://*********************************************************"> <dppp4:string>My2Name</dppp4:string> </dppp2:nGuids> <dppp2:pArch>None</dppp2:pArch> <dppp2:sType>ATUP</dppp2:sType> <dppp2:uUM>false</dppp2:uUM> <dppp2:vtName>5u_4{Counter}</dppp2:vtName> <dppp2:vtType>mor</dppp2:vtType> <dppp2:trIp xmlns:dppp4="http://**********************************************************"> <dppp4:mAd>73111160</dppp4:mAd> <dppp4:mFam>InterNetwork</dppp4:mFam> <dppp4:mHsh>0</dppp4:mHsh> <dppp4:mNmb xmlns:dppp5="http://*********************************************************"> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> </dppp4:mNmb> <dppp4:mScpId>0</dppp4:mScpId> </dppp2:trIp> <dppp2:tCrName>ctii_rl</dppp2:tCrName> <dppp2:tEName>Nwa</dppp2:tEName> <dppp2:tPName>AutoDefault</dppp2:tPName> </dppp2:LVPrm> <dppp2:LVPrm> <dppp2:Bnr i:nil="true" /> <dppp2:CCount>2</dppp2:CCount> <dppp2:OSV>8542</dppp2:OSV> <dppp2:ParentId>0</dppp2:ParentId> <dppp2:RMM>2048</dppp2:RMM> <dppp2:bName i:nil="true" /> <dppp2:bFvr>CHK</dppp2:bFvr> <dppp2:customSName></dppp2:customSName> <dppp2:hst>V42</dppp2:hst> <dppp2:mPath i:nil="true" /> <dppp2:nNames xmlns:dppp4="http://********************************************************"> <dppp4:string>MyName</dppp4:string> </dppp2:nNames> <dppp2:nGuids xmlns:dppp4="http://*********************************************************"> <dppp4:string>My2Name</dppp4:string> </dppp2:nGuids> <dppp2:pArch>None</dppp2:pArch> <dppp2:sType>ATUP</dppp2:sType> <dppp2:uUM>false</dppp2:uUM> <dppp2:vtName>5u_4{Counter}</dppp2:vtName> <dppp2:vtType>mor</dppp2:vtType> <dppp2:trIp xmlns:dppp4="http://**********************************************************"> <dppp4:mAd>7311160</dppp4:mAd> <dppp4:mFam>InterNetwork</dppp4:mFam> <dppp4:mHsh>0</dppp4:mHsh> <dppp4:mNmb xmlns:dppp5="http://*********************************************************"> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> <dppp5:uShort>0</dppp5:uShort> </dppp4:mNmb> <dppp4:mScpId>0</dppp4:mScpId> </dppp2:trIp> <dppp2:tCrName>ctii_rl</dppp2:tCrName> <dppp2:tEName>Nwa</dppp2:tEName> <dppp2:tPName>AutoDefault</dppp2:tPName> </dppp2:LVPrm> </GoodData> </uTemplateData>"
You see that the above xml is more complex than the xml file which supported the radgridview.
So, I'm asking you as new developer of winforms to help me step by step in order to insert, update and delete records from the above xml.
If the radgridview is not intended for supporing such xml files, Please, guide me how to achieve the requirement using another control.
It is appreciated to send me a code with an explaination.
Regards,
Bader

I need a button with 3 images and 3 labels.
Thank you very much.
-----------------------
- Image1 label1 -
- Image2 label2 -
- Image3 label3 -
-----------------------
