Forum  Core :: SDK (Vi...  Bug Reports  VWG_6.4 RC1 edit control binding error.
Previous Previous
 
Next Next
New Post 11/21/2010 4:10 AM
Accepted Answer 
  palli
11838 posts
1st Level Poster




Re: VWG_6.4 RC1 edit control binding error. 

Hi anqingrong,

Please view the task tracker entry that was created for what you reported. Please view the comments for the reason of the "Cannot reproduce" status.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 11/21/2010 5:53 AM
  anqingrong
18 posts
No Ranking


Re: VWG_6.4 RC1 edit control binding error. 

Thanks Pilli, resolved quickly, it is tough!

I look forward to the latest version.

 
New Post 11/21/2010 9:19 AM
  palli
11838 posts
1st Level Poster




Re: VWG_6.4 RC1 edit control binding error. 

Hi,

Judging from your words, it seems like you assume that something was actually fixed within the context of that tracker entry. A resolution of "Cannot reproduce" means that nothing was fixed, and in this case, it get's the "Cannot reproduce" resolution because a WinForms app was created and tested with the same code and it did give the same results for the same code.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 11/21/2010 10:23 PM
  anqingrong
18 posts
No Ranking


Re: VWG_6.4 RC1 edit control binding error. 
I'm sorry, I understood for the “task tracker entry” wrong.
If so, in the use of DT.GetChanges () before, I have to perform EndEdit () method.
    public partial class Form2 : Form
    {
        private DataTable DT = new DataTable("DDT");
        public Form2()
        {
            InitializeComponent();
            DT.Columns.Add(new DataColumn("Column1"));
            DT.Rows.Add("bb");
            //my adding code
            DT.AcceptChanges();
            this.bindingSource1.DataSource = DT;
            this.textBox1.DataBindings.Add(new Binding("Text", this.bindingSource1, "Column1"));
        }
        private void button1_Click(object sender, EventArgs e)
        {
            //my adding code
            bindingSource1.EndEdit();
        }
        private void textBox1_DoubleClick(object sender, EventArgs e)
        {
            object obj = DT.GetChanges();
            if (obj == null)
            {
                MessageBox.Show((DT.Rows[0].ItemArray[0]).ToString());
            }
        }
    }

Thanks Pilli.

 
New Post 11/23/2010 10:49 AM
  palli
11838 posts
1st Level Poster




Re: VWG_6.4 RC1 edit control binding error. 

Hi anquingrong,

Yes, this seems correct, according to what I've seen while Googling this problem in .NET. There are a lots of mentioning this exact behaviour, and BindingSource.EndEdit() is required before the datasource is updated. I added two of those links to our BindingSource wiki article.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Bug Reports  VWG_6.4 RC1 edit control binding error.
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS