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 > february 2008

Bitwise operators in RowFilter
Posted by Paul S at 2/28/2008 2:25:00 AM
I want to set the DataSourse of a ComboBox and for that a have a DataTable containing the data. I only want a subset of the data bound to my ComboBox so I create a DataView and try to select the data using a RowFilter. The table has a numeric column on which I want to base my selection us...more >>

VB .NET combobox advanced databinding question
Posted by Brad Overstreet at 2/25/2008 7:09:01 AM
I have a form which has a databound combobox on it. The display is bound to one part of the data and the selection is bound to the other. The selected value is bound to another binding source item. This works fine when I only want to bind the selected value to another object. In my case I ...more >>

Enlighten me please!
Posted by Carl Johansson at 2/21/2008 4:54:46 PM
Suppose I have this: listBox1.DataSource = listView1.Items; listBox1.DisplayMember = "Text"; comboBox1.DataSource = listView1.Items; comboBox1.DisplayMember = "BackColor"; Now, if I click on an item in listbox1, the same item is automatically selected in combobox1, and vice ...more >>

?? Bindings are Ignored on Form Size and Location ??
Posted by Tom Baxter at 2/18/2008 3:32:47 PM
Hello all, I'm trying to bind my Form's ClientSize and Location properties to entries in the app.config file. When the user resizes and/or moves the form, I want the changes in the form's size and location to be saved back to the app.config file. In the "(Application Settings)" of the fo...more >>

CheckedListBox -> Manually Adding Objects
Posted by Chevron Boyde at 2/17/2008 2:37:22 PM
Hi All I need to add items to a CheckedListBox. I need to use the DisplayMember & ValueMember properties as I have a SupplierID & SupplierName to work with. I also need to default all Items to be checked when adding them. I am able to Bind using a <List> but then need to check all the ite...more >>

DataGridView and sorted DataView - how to locate table row?
Posted by Tom Dacon at 2/17/2008 2:31:07 PM
I'm using a DataGridView bound to a DataView on an underlying DataTable. Starting from the grid row index, how can I locate the row in the underlying DataTable's rows collection? All I've got is the row index, which after sorting no longer matches the Datatable Rows collection index for the...more >>

DB Updates not reaching Database
Posted by Morris Neuman at 2/7/2008 6:41:01 PM
I created a very simple walkthrough C# project in VS2005, just a blank form with a detail view of a data table. I create a data source with an existing SQL database file using an SQLCLient connection. SQL express server is installed. THe "Test Connection" passes OK and The data preview from...more >>

NoNullAllowedException when adding new row to bindingsource
Posted by Magnus.Moraberg@gmail.com at 2/6/2008 7:27:03 AM
Hi, How do I catch the NoNullAllowedException as produced via the following setup - I have a table with two colums - id and name. Neither allow null values. id is the primary, and auto-increments when a new value is added. On my form I have a text box bound to name. I also have a binding...more >>



prm = Nothing
Posted by Will at 2/5/2008 7:06:01 AM
Just curious... Given: Dim cmd As New SqlClient.SqlCommand ... Dim prm1 As New SqlClient.SqlParameter("@ID",'DOG') cmd.Parameters.Add(prm1) Does cmd.Parameters.Clear remove the prm1 from memory, or just from the cmd Parameters list? Should I als...more >>

sending image file to MS Access database in VB .Net 2005
Posted by kamran at 2/4/2008 7:43:28 AM
Hi! i have asked this question befoe but i did not eceive any reply on that. so i have to ask it again. i want to know that how can i store a picture in my MS access database file (*.mdb). i curently have a VB .Net application which has a form (frmcustomers) and a MS access database. the custom...more >>

How to catch exceptions thrown by BO when using binding
Posted by Clay at 2/2/2008 10:56:00 AM
If I databind a BO that I created and to a textbox, and the BO throws an exception rejecting a value, how can I catch that exception? In the sample below, if I enter a value over 100 into TextBox1, focus does not move from TextBox1 and the 'Validated' event does not fire. I don't see how I...more >>

Making a change to a check box cell instant
Posted by Cartoper at 2/1/2008 12:45:23 PM
I have a data grid that has a check box in one column. I would like the value in the dataset to change as the user clicks on the check box, not after they click on another row. How do I do that?...more >>


DevelopmentNow Blog