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

Filter by week: 1 2 3 4 5

Controling detail table
Posted by John at 9/30/2005 10:23:23 PM
Hi I have dragged a master and a detail table on the form. How can I now make the master table control the detail table in that proper detail records are displayed when a master record is selected from the Master BindingNavigator? Thanks Regards ...more >>


Databinding on a custom property not working properly
Posted by anony NO[at]SPAM nospam.com at 9/29/2005 2:01:05 PM
I have a form with a custom property called 'KamerID'. This property is bound to a column (KAMERID) in a datatable (ABONNEES) in a dataset (dsAbo). The property is bound at runtime: this.DataBindings.Add("KamerID", dsAbo, "ABONNEES.KAMERID"); The code for the property: [Bindable(true...more >>

Obtain CurrencyManager from class implementing IBindingList
Posted by Tony Maresca at 9/26/2005 3:30:30 PM
TXkgZGF0YXNvdXJjZSBpcyBhIGNvbGxlY3Rpb24gdGhhdCBpbXBsZW1lbnRzIA0KSUJpbmRpbmdM aXN0Lg0KDQpJIGFtIGJpbmRpbmcgdG8gYSBkYXRhZ3JpZCwgYW5kIG5lZWQgdG8gZ2V0IHRoZQ0K Y3VycmVuY3kgbWFuYWdlciBmcm9tIHRoZSBkYXRhc291cmNlLCBzbyBJDQpjYW4gY2FsbCBTdXNw ZW5kL1Jlc3VtZUJpbmRpbmcsIHdoaWxlIG15DQpkYXRhc291cmNlIHVwZGF0ZXMgbX...more >>

Deleting the current row of a Dataview
Posted by Jeff Tolman at 9/22/2005 10:56:32 PM
Is there anyway to delete the current row of a Dataview? I can't seem to find any property or method that tells me which row is currently selected. Thanks to all who respond! Jeff Tolman ...more >>

Deleting from a Dataview
Posted by Jeff Tolman at 9/22/2005 10:50:36 PM
Is there any way to delete the current row of a dataview? I can't seem to find any properties or methods that give me the current row to delete. I know I can do a Find(), but I need to do that off of a key value of the CURRENT row! Am I missing something? Thanks to all who answer! Jef...more >>

Refreshing a dataview source to a datagrid
Posted by Michael Kellogg at 9/22/2005 3:29:50 PM
I have a table that I've built by saying something like "SELECT * FROM Manifest_Details WHERE [manifest_id] = @manifest_id". I can pull up the information into a dataset/datatable nicely, and then I build a DataView off of the table and set it as the DataSource for my DataGrid. Everything ...more >>

Problem in selecting row after sorting in datagrid...
Posted by Deep Silent Ocean at 9/22/2005 2:02:06 PM
Hi All I have one specific question for DataGrid In the Form Load event of the Form, I am binding data with DataGrid. On clicking Row the CurrentRowIndex is updated and it gives me correct rowindex. But if, I click on Column the data gets sorted in ascending or descending order. But...more >>

Databinding textboxes to filtered datagrid
Posted by pinarello at 9/21/2005 11:48:01 PM
Hi, I have a form with a datagrid (dgCustomers) on it. The datagrid has - as Datasource: myDataset - as DataMember: tblCustomers On one side I have a textbox that I use to filter the datagrid as follows: myDataset.Tables["tblCustomers"].DefaultView.RowFilter = " c_lastname like '%" + txt...more >>



Custom collection was binded at design time, but does not populates datagrid at run time...
Posted by SammyBar at 9/21/2005 8:01:53 AM
Hi, I'm trying to bind a custom collection class to a data grid, following the guidelines from the article http://msdn.microsoft.com/msdnmag/issues/05/08/CollectionsandDataBinding/default.aspx. The problem is the article is in VisualBasic. I already get the collection to be recognized as ...more >>

Field not being saved to DB even when bound textbox shows changed data
Posted by johannblake NO[at]SPAM yahoo.com at 9/20/2005 11:10:45 PM
I have a form with a single textbox control which is bound to a DataRelation in a typed dataset. The textbox displays the name of the product depending on the language selected from a combobox. When you select a different language, the textbox must show the name of the product in the selected la...more >>

ERROR: Cannot create child list
Posted by Jeff Tolman at 9/20/2005 7:57:08 PM
I am coming across a very strange problem where can't seem to bind my = datatable to my datagrid. I have two datagrids, where the first is = having no problem binding to a datatable. However, my second datagrid = keeps getting a "Cannot create child list for field 'Table'". Does = anyone know...more >>

DataBinding to Custom Class breaks after New instance: how to get around this?
Posted by DraguVaso at 9/20/2005 9:35:55 AM
Hi, I'm having the following situation: - A class clsFournisseur with public property's which raise a MyPropertyChanged-event in the Set-method for each Property. Public Event NomChanged As EventHandler Public Property Nom() As String Get Re...more >>

Databinding Error on Tab Control
Posted by Lynn at 9/19/2005 2:55:04 PM
I have several controls on a tab control contained in a User Control (which I call the tabPanel). sample code: public class TabPanel: System.Windows.Forms.UserControl { private System.Windows.Forms.TabControl tabControl1; private NAMISM.WinUI.TemplateUI.TInspectionScheduleBaseUC ...more >>

Exposing custom collections as datasources for VS in design time... how to do that?
Posted by SammyBar at 9/19/2005 8:57:26 AM
Hi all, I have some custom collections (ArrayList of custom Objects) and I want to display them using typical Windows form controls (DataGrid, Combo). What should I do to expose them as valid datasources to these controls? What if I want that these collections work with Visual Studio on des...more >>

Unable to Bind to Visual FoxPro table!
Posted by Jeff Tolman at 9/16/2005 5:45:59 PM
I am unable to bind my datagrid and dataset/datatable that was retrieved using the VFPOLEDB.dll database interface. I keep getting a "Cannot create a child list for field Table". Does anyone have any ideas about what's going on here? Thanks to all! Jeff Tolman ...more >>

Checkbox databinding issue on descendant control
Posted by Lynn at 9/15/2005 9:47:09 AM
Hi, I have a checkbox that I have added to a descendant user control. I am binding the checkbox to the dataset on the ancestor control. Any changes made to the checkbox is not being picked up in my update. No error is thrown. I ran through the debugger and compared the difference between t...more >>

databinding to two comboboxes through dataset relationship
Posted by Robin at 9/14/2005 3:59:03 PM
I have two combo boxes that are populated and bound from two related dataset tables through their relationship, like this: //bind to domain tables to populate values ParentComboBox.DataSource = myDataSet.ParentTable; ParentComboBox.DisplayMember = "Name"; ParentComboBox.ValueMember = "NameID...more >>

Bound textbox that is invisible
Posted by Karen at 9/13/2005 2:38:38 PM
I have a bound textbox that I'm setting programmatically. It updates the dataset and database if the textbox is visible but not if I set visible to false. Can this be done with a dataset or do I have to set the database field directly. ...more >>

Databinding in VS 2005 Beta 2 on datagridview control
Posted by TheOne at 9/13/2005 1:34:35 PM
Hi, I am setting up DataSource and DataMember of datagridview control to some table in dataset. Once I insert new record, I update this information to database and accept changes. Problem is that since I am generating primary key for this table in Oracle, my datagridview has different primary ...more >>

Help with Forms and DataSet
Posted by John Cosmas at 9/11/2005 11:06:10 AM
Hello; I'm relatively new to .NET and I'm trying to figure out something rather trivial, but can't seem to find the right documentation. I have a form that I have bound to a dataset. I placed a drop down combo on the top of the form. When I select an item from that list, I would like the...more >>

Filtering databound comboboxes
Posted by Doug Yoder at 9/2/2005 10:04:45 AM
I have a form with several comboboxes, each of which I want to display all the valid codes for a particular data field. I have all the comboboxes getting their displaymember and valuemember from one table via a BindingSource. The validcodes table lists one code per row, so if element #1 has 3 v...more >>

Event Handler (DataGrid row changed)
Posted by rbfigueira at 9/1/2005 2:20:02 PM
Hi Friends, There is any DataGrid event handler that reflect the change of one row in the DataGrid? How to detect changed row in a DataGrid ? I don´t know .... perhaps using CurrencyManager. But how to do it? Note: I am using one ArrayList in DataGrid database source. Thanks Best ...more >>

DataGrid With SortList DataSource (update datasource problem)
Posted by rbfigueira at 9/1/2005 5:55:06 AM
Friends, I have tried to find some information about my problem BUT i can't. I have one DataGrid (Windows Forms) that uses for the database one (SortedList - HashTable) SortedList h = DataBase.FillShortList(); // Fill my SortList "Hashtable" DataGrid.DataSource= new ArrayList(h.Va...more >>


DevelopmentNow Blog