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 2005

master detail query
Posted by pinarello at 10/29/2005 12:00:00 AM
Hi, I am creating a little invoicing application in C# on an access database. Main DB-structure: customers -> * invoice -> * invoicelines I created a typed dataset for it, (with xsd), including all constraints. I have an "invoice" screen, with: First section: Some customer fields, (read-on...more >>

how to erase all rows in DataGrid before populate it again
Posted by Bruno Alexandre at 10/28/2005 9:42:43 AM
Hi Guys, How can I erase the content o a Data Grid so the next content will be a fresh one, instead of ADDING to the last line in the datagrid...? Thank you -- Bruno Alexandre (Sintra, PORTUGAL) ...more >>

Binding combobox to a cell of a datagrid
Posted by geeta at 10/27/2005 12:00:00 AM
hi, i am facing problem with attaching combobox to a cell of a datagrid. namely to the cell 3rd row 4 column.. then the combobox should display the content of that particular cell... can anyone help me in this regard Thanks Geeta ...more >>

Empty table
Posted by Guy Pelletier at 10/26/2005 3:36:39 PM
Hello everybody,=20 I have controls two tables in a dataset that are linked with a relation = and all field are bind to control on a form. When I navigate to a row in the parent table for wich there is no child, = the binded text box are empty, as expected. =20 When I put text in the cont...more >>

Object Reference not set on DataSet value change?
Posted by Stephen Boutros at 10/26/2005 2:19:17 PM
I've just installed the .NET Framework 1.1 SP1 and suddenly things that used to work are giving me problems. Specifically, I have a grid (not an MS DataGrid but one from a third-party) which is bound to a DataView. One of the columns is boolean and the grid displays checkboxes, as expected. Wh...more >>

Newbie With Database Connection Error
Posted by No_So_Clever at 10/24/2005 5:04:07 PM
Hi, Wonder if Somebody could help me? I`ve been searching all over for a solution but am totally lost. I have a Class called Connection as below: Public Class Connection Private Shared mConnectionsstring As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" Private Shared mLocat...more >>

Results of query are not returned in DataAdapter Fill method
Posted by bordsby at 10/20/2005 11:26:19 PM
Windows Form Application, MSAccess Database, VB.NET I am having a very strange problem with the OleDb.OleDbDataAdapter.Fill method.... I have used this method thousands of times with success and have never had any problems, but recently I have a query that will definitely return multiple rows ...more >>

Using DataView filter when binding to DataGridView
Posted by tab at 10/19/2005 2:02:05 AM
I have set the 'datasource' property of a 'bindingsource' object to a DataView ('dv'). The dv is in turn bound to a dataset table: dv = this.MyDataSet.MyTable.DefaultView; I then set the 'datasource' property of a DataGridView ('DGV') object to the 'bindingsource' object. T...more >>



Change focus
Posted by Mervin Williams at 10/18/2005 8:18:07 PM
I have a form with a datagrid and two buttons on it. Upon opening the form, focus goes immediately to the datagrid. How do I set focus onto one of the buttons. I've tried to use "btnSave.Focus()", but to no avail. Please help. Mervin Williams ...more >>

BuildSortString exception
Posted by JohnC at 10/18/2005 1:34:04 PM
I am using the SortableBindingList<T> class described in the MSDN Custom Data Binding article at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms11162004.asp?frame=true This business object is displayed in a listbox using databinding via a BindingSource...more >>

SQL Server and DataSet bound to DataGridView
Posted by tab at 10/18/2005 10:02:07 AM
Using VS 2005, I've added a datasource to a DataGridView ('DGV') and this creates the automatic designer code to bind a dataset to the DGV and a data adapter to update the SQL database. The problem is that if I then change the database (e.g. add a field), I need to delete the datasource and...more >>

Confirm changes on BindingNavigator
Posted by Jeronimo Bertran at 10/17/2005 6:26:08 PM
Hello, The default implementation of the BindingNavigator control saves changes to the datasource when the user navigates to a different record. I want to let the user decide if he wants to save changes when the record has been modified. Is there some event that can be handled before a re...more >>

binding to the DataGridView
Posted by Tony at 10/15/2005 5:26:03 AM
I've been looking at the code samples for binding data to a DataGridView using the bindingSource property. I do somthing like bindingSource = new BindingSource(); dataGridView.DataSource = bindingSource; Refresh(); private void Refresh() { DataTable t = GetDataTable( mySQLStmt ); ...more >>

refer to a field in a table
Posted by mpg at 10/14/2005 7:09:17 PM
i think i FINALLY found the correct group...wooohooo using vb2005 i drag-dropped a table onto a form, and removed a bunch of fields i didnt actually need on the form for dataentry. VB automatically created the add-delete-save buttons on a toolbar. my problem is, before the data is updated ...more >>

datagrid and custom collection object synchronization
Posted by Sanjin at 10/12/2005 8:34:44 AM
I have already posted this on microsoft.public.dotnet.general, but without answer. I have custom collection that is bind to the System.Windows.Forms.DataGrid. My custom collection business object has property Quantity. public event System.ComponentModel.PropertyChangedEventHandler Qu...more >>

Deepbinding: ICustomTypeDescriptor problem
Posted by kpax at 10/12/2005 12:00:00 AM
Hi, I'm trying to implement deepbinding for my custom business objects. I have written two custom classes: BindableObject which implements ICustomTypeDescriptor BindableCollection which inherits CollectionBase, ITypedList, IListSource Then for test I have created the following obje...more >>

Concurrency
Posted by Bud J via DotNetMonster.com at 10/9/2005 7:29:40 AM
i've been researching concurrency issues with ado .net for the past few days and have found some trouble finding examples that suit my needs. Over and over again the only two options i've found is either save the your changes (DataRowVersion.Current) or don't (DataRowVersion.Original). Well neit...more >>

Unbound Datagrid Column Order
Posted by RatFree at 10/3/2005 3:13:56 PM
Hi, Does anyone happen to know how to set the display order of columns in an unbound datagrid? I an using a collection of objects and the public properties are all showing but I'd like to change the column order. Thanks, Bill ...more >>

Unbound Datagrid Limit Columns
Posted by RatFree at 10/3/2005 2:31:53 PM
Hi, The DataGrid appears to show all public properties from the datasource as columns in an unbound datagrid. Is there a way to limit the set shown? I'm doing this not to avoid showing them but to avoid the properties being requested from the objects in the datasource. Thanks, Bill ...more >>

Problem with null parameter
Posted by John at 10/1/2005 7:39:16 PM
Hi I have a datadapter with the following SQL; SELECT ID, Company, Status, CompanyType FROM Companies WHERE (@Status IS NULL or @Status = Status) When I try to fill like so; Me.CompanyTableAdapter.Fill(Me.MyDataSet.Clients, "Current"), it brings all companies with stat...more >>

Parameterised query question
Posted by John at 10/1/2005 4:54:11 PM
Hi I have the following sql for my dataadapter; SELECT ID, Company, Status FROM Companies WHERE Status = @Status I fill the dataadapter as Me.CompanyTableAdapter.Fill(Me.MyDataSet.Companies, "Current") and it works great. The problem is how do I view all Companies and no...more >>

Conditional queries
Posted by John at 10/1/2005 4:24:08 AM
Hi I have created a simple data entry form by dragging a table onto a form and letting vs2005 generate all bindings etc. All works fine. Now I need to be able to view records selectively ie sometimes I need to view/edit only 'Current' accounts and other times I need to view/edit only 'Pros...more >>


DevelopmentNow Blog