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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|