Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
830
bindare UltraOptionSet
posted

Buon Ferragosto a tutti.


come posso bindare ilcoltrollo UltraOptionSet?

in questo controllo ho due Item di tipo stringa "Incluso" e "Escluso".

nel Record ho il testo "Incluso" o "Escluso".
Grazie.

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I don't speak Italian, but it looks like you are asking how to bind the UltraOptionSet control. Here's some sample code that may help.


            private void Form1_Load(object sender, EventArgs e)
            {
                DataTable dataTable = new DataTable();
                dataTable.Columns.Add("Incluso_Escluso", typeof(string));
                dataTable.Rows.Add(new object[] { "Escluso" });
                dataTable.Rows.Add(new object[] { "Incluso"});           

                this.ultraOptionSet1.Items.Clear();
                this.ultraOptionSet1.Items.Add("Incluso");
                this.ultraOptionSet1.Items.Add("Escluso");

                this.ultraOptionSet1.DataBindings.Add("Value", dataTable, "Incluso_Escluso");           
            }

Children