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
all groups > dotnet windows forms databinding > january 2005

Filter by week: 1 2 3 4 5

Multiple combo of same table
Posted by Hemang Shah at 1/29/2005 6:59:59 PM
Hello I have a lookup table in my database like this: tblLookup LookupType LookupValue Suppose that lookup type is Language Spoken; Country; Gender etc.. and I want the individual combo box to list only the values of one type. So I can have a combo for each: LanguageSpoken...more >>


Databinding with Listbox control
Posted by Jay Esguerra at 1/26/2005 12:46:40 PM
What is the easiest way to bind a dataset to a listbox control and assign the selectedValue & selectedText to the fields associated with my dataset. Any ideas or examples? i.e.: lstUsers.SelectedValue = ds.Tables[0].Rows[i]["userID"] lstUsers.SelectedValue = ds.Tables[0].Rows[i]["username...more >>

Trapping Datagrid Error Message
Posted by Paul J. Lay at 1/25/2005 11:25:31 AM
BlankI have a WinForm app that uses a datagrid which is bound to a .Net = dataset. After data is entered incorrectly into one of the datagrid = cells and the update button on the form is selected, I get an embedded = message box displaying the error, e.g. "Error when committing row to the = ori...more >>

Good Practice on ListBox
Posted by Hemang Shah at 1/24/2005 5:31:58 PM
Greetings I want to display a listbox on the form which will include two columns from the data table" FirstName" & "LastName" What I've done now, is modify the DataAdapter to include two additional colums as: [FirstName] + " " +[LastName] As NameFN [LastName] + " " +[FirstName] AS Name...more >>

Deep databinding - constructing datagrid on the fly
Posted by Duncan M Gunn at 1/24/2005 10:09:24 AM
Hi, I would like to bind the following data structure to a datagrid: List of RowObjects = DataSource | |* RowObject | |* ColObject (Fields = Name, Value) I would like the elements of ColObject to display as the columns of the grid, ...more >>

DataReader to DataGrid (WinForm app)
Posted by ALI-R at 1/21/2005 11:29:22 AM
Hi All, Is there really a way of binding a DataReader to a Datagrid in a Windows Forms Application?.I know that in ASP.NET ,you just simply set the datasource and call DataBind() method. Thanks ...more >>

TextBox Binding
Posted by Nice Chap at 1/20/2005 2:47:45 PM
I set the Text Property of a databound textbox programatically but the value is not getting transferred to the underlying dataset. Is there is a way to force databinding to kick-in ? please... ...more >>

Synchronizing DataGrid and other controls - ie Textbox.
Posted by Glen M at 1/19/2005 1:33:03 PM
I have a problem synchronizing a DataGrid with my other form controls, ie textboxes, using the VS 2003 IDE. I have a typed DataSet based on Customers in Northwind. I drop my DataSet component on the form. I then connect my DataGrid to the DataSet (in Design). In code I fill the DataSet. Every ...more >>



How do I determine if text fits in my label or not?
Posted by Dave at 1/19/2005 1:14:50 PM
I have a label on a small form. I need to determine if the text in the label fits in the label. My end goal is to reduce the font size of the text in the label until it fits. How can I do this via code? Thanks, -Dave ...more >>

Refresh Text Box
Posted by nick_nw at 1/19/2005 6:37:18 AM
Hi All, I know this has been discussed (and answered) in other threads, but I'm still not getting the functionality I need. My app is a C# Windows App, with a MS Access DB. My app communicates using TCP/IP to a black box we are developing. What I want to happen is the user changes a reco...more >>

Databinding Custom NameObjectBaseCollection
Posted by BBuff at 1/18/2005 1:59:54 PM
I have a custom strongly-type collection that is inherited from NameObjectBaseCollection and implements ISerializable, IEnumerable, IListSource and IList. I can databind this object to a data grid just fine, however, when I make when I add or remove an object or Clear() all of the objects in th...more >>

Change notifications and combo box
Posted by kh at 1/17/2005 6:15:02 AM
Hi. I am binding a collection of objects to a combo box and have set the DisplayMember to a property of the child objects. This is working fine. However if the property is changed in code the text in the combo box is not updated to reflect the change. I have added a property changed event to ...more >>

Binding enum to ComboBox
Posted by kh at 1/14/2005 2:07:01 AM
Hi. I have a type that I am binding to a form. One of the properties is an enum and I want the user to be able to select the value from a ComboBox. I am trying to do this using inbuilt data binding rather than coding up the plumbing to change the property value myself. Basically, I want to bin...more >>

Is this normal?
Posted by Ă–zden Irmak at 1/12/2005 5:03:56 PM
Hi, I have some simple dataentry screens, textboxes are bound into a datasource. I connect to Sql Server 2000. When the user wants to add a new record, I call "AddNew()" method of bindingcontext but it gives me an error saying "CustomerId cannot be null value". This field is int and does n...more >>

Implementing a find nearest
Posted by James Sugrue at 1/12/2005 4:02:57 PM
I have a form which is the result of using the Data Form Wizard. I have added a text box which allows the user to search for a record and go for the nearest record. For example if the user where searching for product name and typed "W" it would go to the first record that starts with W. Whe...more >>

DataSet still accepts invalid Date after Cancel during TextBox Validating
Posted by Don Fisher at 1/12/2005 3:59:52 PM
Using VB.NET, I have a TextBox bound to a Dataset's DateTime Column. I've added Parse and Format handlers to the binding, and have added code to the TextBox Validating Event. During validating, the Date entered is checked for its Year and, if too old, e.Cancel is set to True. However, even when ...more >>

after fill the form doesnt show the data
Posted by Andreas at 1/11/2005 1:37:01 AM
we have a form with a lot of controls ( 30 controls ) which are bound to a dataset. to reduce network traffic we load the data from the database line by line. Example: dataSet.dataTable.Clear(); dataAdpater.SelectCommand.Parameters["ID"].Value = CurrentID; dataAdapter.Fill( dataset ); aft...more >>

Data checking during databinding
Posted by EMW at 1/10/2005 2:53:03 AM
Hi, Is it possible to check the data just before it is bound to a datagrid? I.e. I have a large table of numbers which I bind to a datagrid. What I want to do is to check for each cell what the value of the number is and do something to the color of that cell if that value is lower, inbetwee...more >>

filter expression with date AND TIME
Posted by MajorTom at 1/9/2005 12:15:21 PM
Hello everybody I using an dataview rowfilter expression to filter some record from one dataset, is I only working with the date portion no problem, but how do I use the date and the time for filter some records ? the code that I have is like this one: crit1 = "fecha >= #"+dtpDesde.Value.To...more >>

Simple databinding - controls placed on Tab control -StackOverflow problem
Posted by Mrozik at 1/7/2005 10:19:39 AM
Hi! I have 2 texboxes with binded Text property to my class property. When my textboxes are placed on one tab page everything is OK. But when i place each of them on another tab page, and I try to set my binded class property to some value - and this property is binded to textbox placed on...more >>

Dynamically bind to a datagrid ?
Posted by verane.chanson NO[at]SPAM varianinc.com at 1/6/2005 5:25:54 AM
Hi again, I have another question... I have some business classes that contains some fields, and I know only at run time which fields of those business classes I have to display on my grid (it depends on user choices, and I can have fields coming from different business classes to display in ...more >>

refresh of dataGrid bound to a collection when some item changes
Posted by verane.chanson NO[at]SPAM varianinc.com at 1/6/2005 5:19:19 AM
Hi group, I have a class which inherits from CollectionBase and implements IBindingList. I have bound this class to a data grid using the 'datasource' property. My class is named 'PersonneCollection' and is a list of 'Personne'. My 'Personne' class has several fields like name, age... W...more >>

databinding arraylist
Posted by Ondrej at 1/6/2005 2:08:09 AM
perhaps someone could help a newbie with his big problem. i have an arraylist with objects (class i made with two properties). and i'd like to bind it to a datagrid. there are 3 buttons on the form which should works as add, edit and delete. the problem i have is everytime i use these buttons,...more >>

Binding a textbox to SQLDataSource
Posted by dgb at 1/5/2005 10:29:02 PM
In ASP.NET 2.0 how can a textbox be bound to a SQLDataSource? I have tried using DataBind and Eval, but the results are always empty....more >>

DataBindings and refreshing
Posted by Al Smith at 1/4/2005 12:39:15 PM
Hi, I am binding a property back to a class as... this.checkBox1.DataBindings.Add( "Checked", m_myBindings, "Check1" );=20 When I change the class Check1 value I want my checkBox1 to refect that = change. How do I "tell" the checkBox1 that the underlying property that = it is bound to ha...more >>

Simple binding - how to recognize property change source?
Posted by Mrozik at 1/3/2005 9:08:02 AM
I have a textbox with binded 'Text' property. (to Value property of my class) How can i recognize (in TextChanged event) text change source - i want to know when user changes text, and when text change is caused by binding? Pawel...more >>

Winform Textbox
Posted by nbohana at 1/2/2005 5:29:01 PM
I am using Visual C++.Net. I have connected the textboxes to sqlDataAdapter and Dataset dsOwnerAnimal1. the Winform has several textbox's to enter data. I can display the data in the sql database, but I cannot figure out how move the data to the database. I first clear the fields in the 'Textb...more >>

BindingContext weirdness
Posted by Peter Wone at 1/2/2005 10:07:00 AM
I have a form that provides UI for searching a table. Rather than re-implement essentially the same form for each of various tables, I have implemented a class to represent each search domain, eg to search the Region table you instantiate the RegionFilter class and pass a regionFilter object ...more >>


DevelopmentNow Blog