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 > march 2005 > threads for march 1 - 7, 2005

Filter by week: 1 2 3 4 5

Binding to checkbox and getting imediate results
Posted by Paul Brown at 3/7/2005 5:44:51 PM
I have a simple object with some boolean properties which I've databound to some checkboxes, these in turn affect a text control which is also bound and this all works after a fashion. What I want it to be able to do is to change the text whenever a checkbox is selected, not when a check box l...more >>


Unwanted column shown in datagrid
Posted by Microsoft at 3/6/2005 7:47:02 PM
All, I have a custom object that inherits from CollectionBase. When I set my datagrid.datasource property to this data grid I get the fields I want, however the count property of the CollectionBase object is shown as well. I am sure I need to explicitly define which columns I would like...more >>

Problem using Composite Key...
Posted by Ashwin Murali. T at 3/5/2005 3:05:47 PM
I have a table called orderdetails which has a composite key. It is made of OrderID+ItemCode. The OrderID comes from the Orders table and the ItemCode comes from the Items table.(Foreign Key Constraints) I have a winform application where i have a combobox which displays the OrderID from ...more >>

How to display lookup field in DataGrid
Posted by Kamal Ahmed at 3/4/2005 11:24:42 AM
Hi, All I have a datagrid binded to a datasource. I want to display a lookup field in the same grid. I also want to display a calculated field in datagrid i.e. Qty x Rate (Amount). How is it possible. TIA ...more >>

sqlDataAdapter, SQl Server - why two connections
Posted by Adam at 3/3/2005 9:27:03 AM
I have built a very simple single form Application, with a sqlDataAdapter, sqlConnection, dataSet and a Grid. As soon as I load the application and bind the data there are two connections from my App in SQL Server. Can anyoone explain why this is, and if this means my App will take up two l...more >>

Change value to control binded
Posted by maurorog NO[at]SPAM libero.it at 3/3/2005 2:55:46 AM
I have this problem. I have bind a textbox and if I write with keyword a text, it's saved correctly, but if I change the value by programs es. textbox1.text="aaaa"; the value isn't save. Why ? What happened of different when I write in a textbox or change the value from program ? thanks ...more >>

Binding to UserControl causes HasChanges to be True in the Dataset even though no changes made
Posted by Pete Hearn at 3/2/2005 8:00:16 PM
Hi All, I have a very simple User Control containing a textbox and label control. I expose a ControlText and LabelText property to allow the control's contents to be set as well as the label's text (which is simply a caption for the textbox). When I bind the ControlText property to a DataS...more >>

Valuemember/Displaymember vs. Delegates
Posted by cody at 3/2/2005 2:31:56 PM
I do not think it is good style to use these because you have to hardcode the propertynamed in your code as string literals. Wouldn't it be better to use delegates instead? myComboBox.DisplayMember = new ReturnStringDelegate(myObj.Name); myComboBox.Valuemember = new ReturnObjectDelegate(myObj....more >>



Multiple datatables in one view
Posted by Wayne Scott at 3/2/2005 1:53:34 PM
Does anybody know if it's possible to use a a view, or something like it, to pull together columns from different datatables into one view to bind to a datagrid? ...more >>

error when binding a checkbox and DBNull
Posted by petro at 3/1/2005 4:37:02 PM
When I try to bind a checkbox and the data for the field is null I get an error 'Object cannot be cast from DBNull to Other types'. Also when I use AddNew I also get the same error. I must allow for 0, 1 or null data. My code is as follows: ckActive.DataBindings.Add(new Binding("checked", ...more >>

TextBox
Posted by HungTrinh at 3/1/2005 10:19:36 AM
Hi All, I bind a Textbox with a datarow. When I update the value of a field in datarow, the new value doesn't automatically display in the Textbox. Could you tell me how to solve this problem; Ex: txtSoftwareSN.DataBindings.Add("Text", row, "SoftwareSN"); // DataRow row ...more >>


DevelopmentNow Blog