Archived Months
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
May 2008
June 2008
all groups > dotnet windows forms databinding > august 2004 > threads for august 1 - 7, 2004

Filter by week: 1 2 3 4 5

Problem binding a byte[] property to an Access database. [Format event]
Posted by Rhy Mednick at 8/6/2004 5:28:31 PM
Hi All -=20 I'm using C# and Visual Studio to create an app. My app has a = UserControl (self-built) which exposes a byte[] property. I would like = to bind this property of the control to an Access database. Currently, = the database has only two fields, a text field and a memo field. I a...more >>


Datagrid sort programmatically
Posted by Nancy. at 8/5/2004 1:22:22 PM
Hello: I can sort the header column when the grid is display, but how could I programmatically sort a header column in my datagrid? Thanks! ...more >>

ComboBox setting null value when item changed
Posted by TEK at 8/5/2004 11:04:08 AM
Hello I'm filling a combo box (DropDownStyle = DropDownList) by setting the datasource to a object list. When the user selects an object from the list I want a related object to be updated with the selected value. This is almost working, code shown below; _cmbMargin.DataSource = _post.Marg...more >>

Unbound columns
Posted by Heinz Timmer via .NET 247 at 8/5/2004 1:55:42 AM
Hi, i would have some bound and unbound columns in my DataTable, means the rows with bound column values should be updated to the database and rows with unbound column values are calculated and should not be updated to the database; the update mechanism runs by the dataadapter, so all rows of...more >>

How do I prevent mutiple CurrencyManagers being created?
Posted by runningdog at 8/4/2004 7:53:43 PM
How do I prevent mutiple CurrencyManagers being created? I have a user control which contains a TextBox and a DataGrid, I am binding these programtically to a dataset passed as a property. My user control work fine but other bound TextBoxes (bound with the designer) on the same form are not sy...more >>

Howto syncronise the BindingContext with a row found with the Find method.
Posted by runningdog at 8/3/2004 5:25:59 PM
Hi, I'm stuck trying to syncronise the BindingContext with a row I have just found in the Dataset that I bind to. I.E. ' This will position the form to a row in the dataset Me.BindingContext(DataSourceRef, DataTableRef).Position = pos ' This will return a row in the dataset row = Data...more >>

multiline text in databinding to textbox control
Posted by Etai Margolin at 8/3/2004 12:25:15 PM
Hi, I'm trying to pass a multiline string to a textbox control using databinding, but what I end up with is a string with "\r\n" in it. Using this.textbox.Text = "line1\r\nline2" works, but the same string using databinding doesn't. Any ideas ? Thanks, Etai ...more >>

Bound controls changing .text problem
Posted by Maurice Mertens at 8/3/2004 3:09:58 AM
Hi, a question about bound controls on the form: I'm having a form with bound controls, i.e. Data1, Data2, Data3. When the user changes the value in Data1 the values in Data2 and Data3 need to be calculated and entered automaticaly. I tried to use code like this: me.Data2.text = clng(...more >>



Datatable, primary key, bound controls
Posted by Maurice Mertens at 8/2/2004 5:05:53 AM
Hi, I'm using an Access DB with a table that has a primary autonumber field, i.e. [OrderID]. I created a form with bound controls on it. When I add a new record in the datatable row(1) gets an OrderID which is the same as in row(0). The problem is that when I'm adding this new record I ...more >>

binding datagrid to property hierarchy e.g. "Pet.Name"
Posted by JerryShea at 8/2/2004 4:21:01 AM
I'd like to display top level properties and also second level properties in my datagrid. This is easier to explain with an example. Given these two classes: class Animal { public string Name { return "Rex"; } } class Person { public Animal Pet { return new Pe...more >>


DevelopmentNow Blog