Groups | Blog | Home


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 > october 2006 > threads for october 22 - 28, 2006

Filter by week: 1 2 3 4 5

How do I change a value of a DataTable cell in a DataSet? (C#)
Posted by Pavel Maly at 10/28/2006 3:46:37 PM
Hello everyone, as a beginner I've encountered a problem while trying to change a value inside the DataSet. After I call dataSet.Tables["tbl"].Rows[0].ItemArray.SetValue("something", colIdx); the value in the row 0 and column colIdx of the DataTable "tbl" doesn't get changed. The thing...more >>


Is there a better way to bind a listbox (combBox)?
Posted by Jamie Risk at 10/27/2006 1:50:01 PM
I'd like to bind a combo box control to an object. i.e. bind an index number for an array of display strings to my data object. I've got something that works as far as I've tested it, but it has to be an overly convoluted method. I'd really appreciate a more streamlined method to implemen...more >>

BindingSource and RaiseListChangedEvents
Posted by Mark Atkinson at 10/27/2006 8:53:03 AM
I'm trying to bind my winform controls to a BindingSource instead of a DataView and I'm setting the DataView as the BindingSource's DataSource property. My main reason for binding to the Bindingsource instead of the DataView directly is to take advantage of the RaiseListChangedEvents boolean...more >>

how to control Delete Method?
Posted by Duong Nguyen at 10/26/2006 6:45:14 PM
Hello! I have 2 tables Products (ProductID,ProductName, Del) and Sale(id, productID, qty, price) Del setted to 1 if user deletes this product. I have DataGridView and a BindingNavigator which binds to this table. How can I control the Delete Method of the productsBindingSource everytime when...more >>

How can I bind a control to an object declared at run time?
Posted by Jamie Risk at 10/26/2006 3:44:17 PM
I'm so lost. This has to be the 20th attempt at writing this posting. * I have a form with various controls. * I have an object with associated properties (accessible with get/set type of interface). * I'd like to have the controls manipulate the properties of the object...more >>

Simple data binding question
Posted by Dmitry Nogin at 10/26/2006 2:33:04 PM
Hi, I tried to databind my object to the TextBox control: =20 textBox1.DataBindings.Add( new Binding("Text", new Test(), "Text")); =20 The exception message was: {"Cannot bind to the property or column Text = on the DataSource.\r\nParameter name: dataMember"} =20 My datasour...more >>

Bound DataGridView with column decimal
Posted by AnikSol at 10/26/2006 12:00:00 AM
Hi All, Ref: VB 2005 Prof, SQL Server 2005 We have a bound datagridview which has a column (say colidx = 1) whose datatype is decimal. The db allows null values for this column. If a user enters a value in this cell and tries to cancel his input by using the backspace key ( meaning the ...more >>

Default value of a GUID field?!
Posted by Leon_Amirreza at 10/26/2006 12:00:00 AM
I have a column named "ID" and its type is "uniqueidentifier" in SQL Server 2005 Express. this column is the primary key and its default value is "newid()" in SQL Server. I have generated a DataSet in C# that has this column but its default value is DBNull what can I do to make the default...more >>



Binding a DataSet with multiple takes to a BindingNavigator
Posted by mordock32 NO[at]SPAM hotmail.com at 10/25/2006 2:43:26 PM
I have a DataSet, let's say with two tables: one for jobs, one for employees. I want to do something like this: BindingSource bs = new BindingSource(); bs.DataSource = ds; nav.BindingSource = bs; However, when I try to do that, I get 1 of 1 records when there are around 300 records in th...more >>

Determining which object has been removed from a BindingList
Posted by Andy Paterson at 10/24/2006 10:52:16 PM
I have a class that inherits from BindingList<T>. It raises the ListChanged event. When an object is removed from the list, how do I figure out which object was removed? ListChanged e.NewIndex points to the object that is now in the position where the removed one was. But I want to do so...more >>

ComboBox - Losing binding
Posted by s26f84 NO[at]SPAM gmail.com at 10/24/2006 2:59:10 PM
Hey Guys&Gals my combo box is never empty it always have the text from the first member of the table... Plz help my code: this.cbo.DataSource = SearchData.Tables["Name"]; this.cbo.ValueMember = "ID"; this.cbo.DisplayMember = "Name"; this.cbo.SelectedIndex = -1; this.cb...more >>

Master/Detail Relationship
Posted by Chuck P at 10/23/2006 2:31:02 PM
I have a dataset (dsIntake) in the designer with a master/detail relation. The relation is marked with Relation Only and Nested Relation In the designer code it is: this.relationIntakes_vwIntakeRelatedCases = new System.Data.DataRelation("Intakes_vwIntakeRelatedCases", new System.Data.Data...more >>

BindingSource.AddNew() locks TextBox.Text property??
Posted by tomse at 10/23/2006 10:33:03 AM
Hello, I have simple databinding of textbox to bindingsource(bound to dataset), created in form constructor: public Form3(string xyz) { InitializeComponent(); Program.bindingSource.AddNew(); textBox1.DataBindings.Add("Text", Program.bindingSourc...more >>

VS 2005 Dataset and DataAdapter
Posted by Andrzej at 10/22/2006 11:01:26 AM
Is it possible to add a Dataset using a control in Visual Studio 2005? I need to add a Dataset control, or some other object that will show up in the GUI as a "Data Source" for data-binding. The reason I need a DataSet is for its multiple-table capabilities - one of the custom controls I am using ...more >>

Binding a textbox to a nullable datatype.
Posted by markk NO[at]SPAM nait.ca at 10/22/2006 10:41:27 AM
I am wondering if there is a better solution, than the one I came up with... I am binding a textbox to a nullable float (float?) and want the ability for the user to leave the textbox blank, indicating that it is null. If you do not alter the behavior of the textbox, the user, when attempting...more >>


DevelopmentNow Blog