Click here to Skip to main content
       

C#

 
AnswerRe: Fibonacci sequence PinmvpAbhinav S22-Apr-13 18:01 
AnswerRe: Fibonacci sequence PinprotectorPete O'Hanlon22-Apr-13 19:48 
AnswerRe: Fibonacci sequence PinprofessionalKenneth Haugland22-Apr-13 22:00 
AnswerRe: Fibonacci sequence PinmemberClifford Nelson24-Apr-13 15:49 
QuestionThrow NullReferenceException in SendKeys.Send() Pinmembertikcireviva22-Apr-13 3:49 
AnswerRe: Throw NullReferenceException in SendKeys.Send() PinmvpEddy Vluggen22-Apr-13 4:56 
AnswerRe: Throw NullReferenceException in SendKeys.Send() PinmemberAlan N22-Apr-13 5:49 
QuestionDatabind won't work for Combobox and Checkbox Pinmemberyuifox22-Apr-13 3:08 
Hi !
 
Pardon for my bad english.
Ive been working this code for weeks,
 
foreach (Control Ctrl in this.Controls)
            {
                switch (Ctrl.GetType().ToString())
                {
                    case "clarinrt.form.other.sdate":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.slookup":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.scheck":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Checked", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.snumeric":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.stext":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("Text", formdataset, Ctrl.Tag.ToString()));
                        break;
                    case "clarinrt.form.other.sdropdown":
                        if (Ctrl.Tag.ToString() != "") Ctrl.DataBindings.Add(new Binding("SelectedIndex", formdataset, Ctrl.Tag.ToString()));
                        break;
                    default:
                        break;
                }
 
            }
 
For each control, TAG property will be filled such as "account.detail" refering to a column in table name, while formdataset is Dataset for this form.
 
This code in Load method on base form. the problem with sdropdown and scheck which inherited from combobox and Checkbox. If I comment out, those two part, Databind work fine.
 
Can someone told me, what I should do ? sdropdown will be databind with Integer column while scheck will be databind with Boolean column
 
Thank you for your help...
AnswerRe: Databind won't work for Combobox and Checkbox PinmvpEddy Vluggen22-Apr-13 4:58 
GeneralRe: Databind won't work for Combobox and Checkbox Pinmemberyuifox22-Apr-13 11:46 
AnswerRe: Databind won't work for Combobox and Checkbox PinmvpEddy Vluggen23-Apr-13 10:35 
QuestionManipulating taskbar right click applicatin menu PinprofessionalAndreas X21-Apr-13 23:09 
AnswerRe: Manipulating taskbar right click applicatin menu PinmvpEddy Vluggen22-Apr-13 0:32 
GeneralRe: Manipulating taskbar right click applicatin menu PinprofessionalAndreas X22-Apr-13 1:31 
AnswerRe: Manipulating taskbar right click applicatin menu PinprofessionalRichard Deeming22-Apr-13 1:48 
GeneralRe: Manipulating taskbar right click applicatin menu [modified] PinprofessionalAndreas X22-Apr-13 7:15 
QuestionCode-Behind doesn't show Pinmemberlarsp77721-Apr-13 22:56 
AnswerRe: Code-Behind doesn't show PinmvpOriginalGriff21-Apr-13 23:06 
AnswerRe: Code-Behind doesn't show PinmvpEddy Vluggen22-Apr-13 0:30 
GeneralRe: Code-Behind doesn't show Pinmemberlarsp77722-Apr-13 0:35 
GeneralRe: Code-Behind doesn't show PinprotectorPete O'Hanlon22-Apr-13 0:43 
GeneralRe: Code-Behind doesn't show Pinmemberlarsp77722-Apr-13 1:00 
GeneralRe: Code-Behind doesn't show PinprotectorPete O'Hanlon22-Apr-13 1:45 
GeneralRe: Code-Behind doesn't show Pinmemberlarsp77722-Apr-13 1:55 
GeneralRe: Code-Behind doesn't show PinmvpEddy Vluggen22-Apr-13 1:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 29 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid