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 > april 2005

Filter by week: 1 2 3 4 5

Issue with DataGrid bound to a DataView on DataSet that gets rows deleted by another thread
Posted by Sorin Dolha at 4/30/2005 12:00:00 AM
Hello, I have a small Windows Forms application that has a DataGrid object bound (through the DataSource property) to a DataView that is linked to a DataTable from a local instance of a typed DataSet. The DataSet is updated dynamically, by another thread in the same process (that creates ne...more >>


using collectionbase derivative as datasource
Posted by David J Rose at 4/29/2005 12:00:00 AM
If I define my own classes for an object "Test" and a collection of those objects "TestCollection", what do I need to add to the class to let me set the collection as a datasource for a listbox and have it automatically update whenever an item is added/edited or removed from the collection? He...more >>

HALP!!! Bound Grid: Bool Column: Detect True so only one row is true?
Posted by Brian Link at 4/27/2005 8:17:45 PM
I have a column in my table called "Default". There can only be one row where Default = True. My datagrid is bound to a DataAdapter representing the table, I have the Default column represented by a DataGridBoolColumn. The DataAdapter is filling the table properly, and I can navigate, addnew ...more >>

datagrid formating using an If statement
Posted by ScottGX at 4/27/2005 6:02:09 AM
When binding our dataset to our datagrid we want to first put the data through a routine. For example, a certain DB2 field is a code like 127. When it's 127 I want to display "All day". Any suggestions on how to format data in a grid by running it through a custom "if" statement? Thanks ...more >>

Is it possible to access an ACCESS DB with password protected?
Posted by ZhangZQ at 4/27/2005 12:00:00 AM
Is it possible to access an ACCESS DB with password protected? I have the user/password information of an access db, how can I access it by System.Data.OleDb ? Another question is, is it possible to compact a access db by a System.Data.OleDb ? Thank you very much! ZhangZQ ...more >>

Datagrid & child table with no DataGridColumnStyle assigned?
Posted by Quetzal via DotNetMonster.com at 4/27/2005 12:00:00 AM
Hello, I have a dataset populated using an XML file. The schema has hierarchical components. I have created a datagrid and I have assigned a datastyle and then gridcolumnstyle for all columns at the parent level. I have created a datastyle for every child level and I have assigned also gri...more >>

Delphi, Listbox: Could not bind to the new display item
Posted by ZinaLozhkina NO[at]SPAM yandex.ru at 4/24/2005 3:08:08 AM
Hi all, I tried to create and fill a listbox in Delphi specifying DataSource, DisplayMember and ValueMember properties. But I got a error "Could not bind to the new display member". Then I found an example in Delphi help (only for VB or C++ for some reason!), translated it to Pascal and got th...more >>

How to learn about databinding?
Posted by Alex at 4/22/2005 1:43:49 PM
BindingContext, CurrencyManager, PropertyManager, IBindingList, ... Is there a good tutorial that covers data binding from the basic = concepts to advanced operation? Thanks, Alex. --=20 Address email to user "response" at domain "alexoren" with suffix "com"...more >>



IBindingList removing le last item throws an exception...
Posted by Mauro Servienti at 4/21/2005 12:00:00 AM
Hi, I have implemented a class hierarchy similar to the DataTable - DataView structure, I have an ObjectCollection (implements IList, ICollection, IEnumerable) and a Object, then an ObjectView (implements IList, ICollection, IEnumerable, _IBindingList_, _ITypedList_) and an ObjectViewItem...more >>

Binding multiple checkboxes to a single data field
Posted by Jeronimo Bertran at 4/19/2005 11:17:59 PM
I have a form that uses databinding to update a database table. One of the fields in the table corresponds to multiple checkbox controls in the form (Flags Attributes). How can I perform the databinding in this case? Thanks, Jeronimo Bertran...more >>

Implementation of IBindingList.Find - return value
Posted by Roy Chastain at 4/19/2005 12:00:00 AM
The documentation says that the return is an int. (C#). I assume that this is 0 based, so what does one do if the find fails. Throw an exception? Is there a standard exception to throw or do I make one up? Thanks ------------------------------------------- Roy Chastain KMSystems, Inc....more >>

How to insert combobox into VB.Net winform Datagrid
Posted by Kamal Ahmed at 4/18/2005 12:00:00 AM
Hi, All I have a datagrid binded to a datasource. I want to display a combo box having list of values from a parent table as a lookup field in the same grid. How is it possible. ?? TIA ...more >>

Checkbox binding - convert DBNulls
Posted by burn_mcdonalds NO[at]SPAM hotmail.com at 4/16/2005 7:22:44 AM
Hi, I have a dataset that may contain DBNulls, how would i go about binding these to a checkbox so that if the value is DBNull it is interpreted as false?? Thanks Chris...more >>

ADODC Databinding in .NET
Posted by CHEW TZESENG at 4/16/2005 12:00:00 AM
Hi All, As still rely with ADODC and ADODB since VB6's track. Anyway for us to do databinding by using ADODC rather then DataSet, Adapter ....etc? Thank you. ...more >>

How to use Datagrid with ArrayList
Posted by Roy Chastain at 4/15/2005 1:09:58 PM
I have an ArrayList that contains multiple instances of one type of object. These objects have public properties that can be read and written. How do I get these properties to display in columns in the datagrid? I have bound the arraylist to the datagrid and I have tried defining a tablestyle...more >>

Datagrid Multiple Forms and TextBoxes
Posted by Jamie Sutherland at 4/14/2005 6:48:05 PM
Hi, On my form The user enters data into a textbox and then clicks on the button this opens form2 with only a datagrid. The datagrid contains data from a sql database. The first bit of data I pass is on form1 which is the textbox1, this is to perform the search on the db and put the results into...more >>

Databound controls "synchronization"
Posted by Jeppe Dige Jespersen at 4/13/2005 7:20:43 PM
I have a simple winform. On the form, I have a DataGrid and a Textbox, along with a typed (and filled) dataset. First, I add a databinding to the textbox, binding it to a field in say... Northwind's Customers table. Then I databind the datagrid by setting the Datasource property to "dsNorthwin...more >>

.NET - ComboBox DataBinding
Posted by Bill S. at 4/13/2005 2:53:33 PM
Hi, To start, I need to explain the way information is setup within my tables. I have three tables linked as parent/child relations. The first, or parent, is my Properties table, and the Property's table child is the Units table, and the Unit's table child is the Requests table. Now, within th...more >>

.NET Parent/Child table relation
Posted by Bill S. at 4/11/2005 1:23:55 PM
Hi, Below is my code for setting up a parent/child relation. It seems to work as far setting up the relation is concerned. For instance, I'm using a DataGrid with navigation and I can move from the parent to the child tables and back etc. However, when I delete a row in the parent table, it do...more >>

ComboBox Databinding to an Object Property
Posted by BBM at 4/9/2005 8:57:02 AM
Hi, I have a situation where I've Databound the SelectedValue property of a ComboBox to a property of another object. Works fine except that the value of the property that I'm updating doesn't really get updated until I exit the ComboBox. So... I hooked the SelectedIndexChanged event fr...more >>

Oledb Connection String Deployed?
Posted by Mark Gaeth at 4/9/2005 12:00:00 AM
Greeting, I have my forms that have a connection to an Access db with all the connections created by the wizard. No problems with the operations of the forms in the design environment / machine. However, when I deploy the program I will not control over the connection string. I have used ...more >>

Bound dataset not updating database
Posted by Craig Johnson via DotNetMonster.com at 4/6/2005 1:09:15 PM
I appologize if this is not the correct group for this question. If it isn't please direct me to the proper place. Ok, I'm on the steep part of the .NET learning curve, so when you see my stupid mistake, please forgive me, but I'm truly stuck. I've created a form with a datagrid that displa...more >>

Databound checkbox and checkedchanged event
Posted by membrillo NO[at]SPAM hotmail.com at 4/5/2005 11:49:18 PM
Hi, i have a databound checkbox to a boolean field of a datatable. When i uncheck it i need to modify also another field of my row. This is the code i use: .... this.checkBox1.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.dataSet11, "myTable.myBool")); .... private vo...more >>

Data Editting
Posted by Christopher Weaver at 4/5/2005 12:08:04 PM
I'm new to VS. I'm using C# so far. I would like to know the preferred way to set up a data connection and grid that allows for editting. So far I've got data showing in a grid using an odbcDataConnection, an odbcDataAdapter, a DataSet, and a dataGrid. I've noticed that the DataAdapter has...more >>

DataBinding with DateTimePicker Control doesn't work
Posted by Hardik Shah at 4/4/2005 5:40:08 PM
Hello, I have created form with data form wizard in VB .Net 2003. I have bind some text box and combo box and it runs properly, but when I am binding DateTimePicker Control with following property it doesn't work : Value Property :- <dataset name>.<Field Name> Any suggession will be appr...more >>

ODBC updating problem
Posted by Q at 4/4/2005 7:41:36 AM
Hello you all, I'm running a network with Win2000 Server (SP3) and Win XP workstations (SP1). I created an application in VB.Net where I use an Access-database. To access the database I use an ODBC-Connection, an ODBC-DataAdapter and a dataset. The data is displayed in a datagrid. The fo...more >>

Binding synchronized cross UI and worker threads possible?
Posted by Jason Clark at 4/3/2005 9:15:57 PM
I'm having a hard time finding the answer to this question. I've done my best to Google for news group articles or blog entries about this but all of the ones I can find simply have the question and not the answer. I have faith though that someone knows the answer, as I can't see this as a min...more >>


DevelopmentNow Blog