Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: Scrool a Textbox Pin
Ashfield24-Oct-08 4:54
Ashfield24-Oct-08 4:54 
GeneralRe: Scrool a Textbox Pin
Pete O'Hanlon24-Oct-08 4:57
mvePete O'Hanlon24-Oct-08 4:57 
GeneralRe: Scrool a Textbox Pin
Paul Conrad24-Oct-08 7:08
professionalPaul Conrad24-Oct-08 7:08 
AnswerRe: Scrool a Textbox Pin
Pete O'Hanlon24-Oct-08 4:55
mvePete O'Hanlon24-Oct-08 4:55 
GeneralRe: Scrool a Textbox Pin
Ashfield24-Oct-08 4:58
Ashfield24-Oct-08 4:58 
GeneralRe: Scrool a Textbox Pin
Pete O'Hanlon24-Oct-08 5:04
mvePete O'Hanlon24-Oct-08 5:04 
GeneralRe: Scrool a Textbox Pin
DaveyM6924-Oct-08 5:59
professionalDaveyM6924-Oct-08 5:59 
QuestionFill datasource what are binded to control what located on different form!!! Pin
El'Cachubrey24-Oct-08 2:37
El'Cachubrey24-Oct-08 2:37 
Hi all. In my application i have one data table what can be binded to control on one form and can be filled on another form.

<br />
<br />
       this.cLIENTBindingSource.DataSource = this.dataSet1.CLIENT;<br />
<br />
       ....<br />
<br />
        this.comboBox1.DataSource = this.cLIENTBindingSource;<br />
        <br />


In proper moment i press a button to make refilling of CLIENT data table.

<br />
 private void simpleButton1_Click(object sender, EventArgs e)<br />
 {<br />
          this.cLIENTTableAdapter.Fill(this.dataSet1.CLIENT);<br />
 }<br />


In this case all work fine! Big Grin | :-D

But when i bind this data table to control on one form and fill this one on other form like this:

Form 1:

<br />
<br />
       this.cLIENTBindingSource.DataSource = this.dataSet1.CLIENT;<br />
<br />
       ....<br />
<br />
        this.comboBox1.DataSource = this.cLIENTBindingSource;<br />
<br />
        ....<br />
<br />
        private void simpleButton1_Click(object sender, EventArgs e)<br />
        {<br />
             Form2 form2 = new Form2();<br />
<br />
             Form2.Show(this.cLIENTTableAdapter, this.dataSet1.CLIENT)<br />
        }<br />
        <br />


Form 2:

<br />
<br />
        private void simpleButton1_Click(object sender, EventArgs e)<br />
        {<br />
            _dataAdapter.Fill(_dataTable);  <br />
        }<br />
<br />
        internal void ShowDialog(System.Data.Common.DbDataAdapter DataAdapter,             System.Data.DataTable DataTable, System.Windows.Forms.BindingSource BindingSource)<br />
        {<br />
<br />
            _dataAdapter = DataAdapter;<br />
<br />
            _dataTable = DataTable;<br />
<br />
            this.ShowDialog();<br />
        }<br />


In this case all sad. Cry | :(( Fill is make vary slow and even may fail. Where is problem here and what i can do to resolve it???

THANK
AnswerRe: Fill datasource what are binded to control what located on different form!!! Pin
Wendelius24-Oct-08 8:12
mentorWendelius24-Oct-08 8:12 
GeneralRe: Fill datasource what are binded to control what located on different form!!! Pin
El'Cachubrey24-Oct-08 20:43
El'Cachubrey24-Oct-08 20:43 
GeneralRe: Fill datasource what are binded to control what located on different form!!! Pin
Wendelius25-Oct-08 2:04
mentorWendelius25-Oct-08 2:04 
GeneralRe: Fill datasource what are binded to control what located on different form!!! [modified] Pin
El'Cachubrey26-Oct-08 21:37
El'Cachubrey26-Oct-08 21:37 
GeneralRe: Fill datasource what are binded to control what located on different form!!! Pin
Wendelius27-Oct-08 8:59
mentorWendelius27-Oct-08 8:59 
QuestionDesign pattern ask for advice Pin
George_George24-Oct-08 1:21
George_George24-Oct-08 1:21 
AnswerRe: Design pattern ask for advice Pin
Ennis Ray Lynch, Jr.24-Oct-08 3:07
Ennis Ray Lynch, Jr.24-Oct-08 3:07 
GeneralRe: Design pattern ask for advice Pin
George_George25-Oct-08 0:31
George_George25-Oct-08 0:31 
AnswerRe: Design pattern ask for advice Pin
led mike24-Oct-08 4:40
led mike24-Oct-08 4:40 
GeneralRe: Design pattern ask for advice Pin
Mark Salsbery24-Oct-08 5:21
Mark Salsbery24-Oct-08 5:21 
GeneralRe: Design pattern ask for advice Pin
led mike24-Oct-08 6:12
led mike24-Oct-08 6:12 
GeneralRe: Design pattern ask for advice Pin
George_George25-Oct-08 0:33
George_George25-Oct-08 0:33 
GeneralRe: Design pattern ask for advice Pin
George_George25-Oct-08 0:32
George_George25-Oct-08 0:32 
AnswerRe: Design pattern ask for advice Pin
led mike24-Oct-08 6:32
led mike24-Oct-08 6:32 
GeneralRe: Design pattern ask for advice Pin
George_George25-Oct-08 0:34
George_George25-Oct-08 0:34 
QuestionHow to scroll a listview with scrollable property disabled Pin
vayanan24-Oct-08 0:02
vayanan24-Oct-08 0:02 
AnswerRe: How to scroll a listview with scrollable property disabled Pin
AhsanS24-Oct-08 0:11
AhsanS24-Oct-08 0:11 

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

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