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 > may 2007

cannot put a "null" into access programatically
Posted by Beemer Biker at 5/29/2007 4:42:41 PM
I have an access database as datasource to a datagridview. The datagridview allows me to default columns to null. All this seems to work ok and save works fine. For example, if I leave out the datetime column then a null goes into the access db and next time it shows up as "blank" which is...more >>


How to CHANGE a textbox column in a databound datagrid to a combob
Posted by Roger Tranchez at 5/28/2007 9:53:01 AM
Hi all !, One BASIC question about combo boxes in a data bound datagridview: I have a datagridview with its datasource property pointing to a bindingsource. The bindingsource has its datasource pointing to a dataset with only one datatable. The datagridview loads all correctly (9 co...more >>

decimal separator, regional settings
Posted by pax at 5/26/2007 12:00:00 AM
Hello there! Here is my problem, in the simplest scenario: - an Access 2000 format database (created with Access 2003) - a simple table that contains one single field defined as Number, Decimal, 18,2 - VS2005 standard, C# - a data source / dataset that cotains that simple Access table - ...more >>

forcing update
Posted by Ralf Callenberg at 5/25/2007 1:44:28 AM
Hello, I've got a DataGridView bound to a list of plain objects. One of the columns of checkboxes is bound to a boolean property. When I check/uncheck a checkbox the property of the underlying object is updated as soon as the according cell loses the focus. So far, so good. But if I just...more >>

BindingSource not raising BindingComplete events
Posted by RipT at 5/19/2007 5:13:01 PM
The DataSource is getting updated but my BindingComplete event handler is not entered. What can cause this behavior? -or- How does one watch "event traffic"? Is it handled by the form's messaging queue? Is there a faq or book out there somewhere which contains this kind of information? ...more >>

Displaying data from parent
Posted by Magnus Bergh at 5/18/2007 4:59:23 PM
What is the best method to display columns in a parent table and not using comboboxes? Example: You have an Order entry form and want to display additional columns from the customer table, let say customer name and adress. If you use a combobox and bind the selected value to the order cust...more >>

DataGridView won't bind to IList(Of T) implementation.
Posted by tendim at 5/18/2007 11:17:25 AM
I've been trying to gea DataGridView to bind to an IList(Of T) implementation. Basically, I have a fixed size list where the members can be changed, but new members can not leave and old members cannot be deleted. To isolate the problem I made a simple project with a simple class which imple...more >>

RowDataBound like event?
Posted by GaryDean at 5/17/2007 12:23:01 PM
In asp.net the GridView has a RowDataBound event - really handy. What event replaces this in the Forms DataGridView? -- Regards, Gary Blakely ...more >>



DataBinding DataGridView with AutoGenerateColumns=false
Posted by RipT at 5/12/2007 1:34:01 PM
How do I use databinding with DataGridView.AutoGenerateColumns = false? I have a DataGridView with a BindingSource as it's DataSource. The BindingSource's DataSource is a typed DataTable in a typed DataSet. The BindingSource in question is not raising BindingCompletes when editing a new row...more >>

Databinding to a Lookup table
Posted by Chuck B at 5/11/2007 11:58:29 AM
I have an Access database with several tables. The table TblInterfaceEvents has several columns SaturdayPriority, SundayPriority, MondayPriority, etc., that are lookup values from the table TblPriorityTypes. I have a Form with several databound controls, amoung which are several ComboBoxes....more >>

Binding does not add new rows to dataset
Posted by PatricioCampos at 5/11/2007 9:55:33 AM
Hello, I'm having serious problems with a little winform app. I make a form to update/add/delete rows of a SQL 2005 database. Problem is that when I add a new record this is not added to the database. I explain: I click in the BindingNavigator button New, then i fill de textboxes, combobox...more >>

DataGridView Updates back to SQL Server
Posted by steveinbeloit at 5/8/2007 8:47:36 PM
I am trying to update changes from my datagridview back to SQL. The DGV is populated from a Stored Procedure. I declared a data table and adapter: [code] Public myConnection1 As New SqlConnection(strConn) Public selCmd2 As SqlCommand = myConnection1.CreateCommand Public da2 As SqlD...more >>

BindingSource.Filter
Posted by SONET at 5/8/2007 9:56:00 AM
I am currently filtering my DataGridView control using the BindingSource.Filter. For some reason it only works for column names with no spaces i.e. BindingSource.Filter = "Description='Hello'"; When I use a column which is composed of two words i.e. BindingSource.Filter = "Packet Type='...more >>

Sorting and Editing datagrid
Posted by Sridhar at 5/4/2007 1:56:00 PM
Hi, I'm using .NET 1.1. I have a datagrid on my form and is binded to a dataview of datatable. When the user changes the value in any cell and press Enter(or any key) to move to a different cell, then the entire row is calculated and displays the calculated values. But when the user sor...more >>

How to select multiple rows in a bounded source using a unbounded checkbox column
Posted by Ram at 5/3/2007 12:00:00 AM
Can any one help me. I want to add a checkbox column to the datagridview to select multiple rows in the datagridview. I am retrieving the data from the database, and then want to add a DataGridCheckBoxColumn for selection of rows. I want to do this in win forms. I am using VC++ 2005 Pleas...more >>


DevelopmentNow Blog