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 2004

Filter by week: 1 2 3 4 5

datasets and getting a value into the id field
Posted by Douglas Buchanan at 9/30/2004 10:37:28 PM
SQL Server 2000 / ADO.Net / VB.Net / DataGrid I am a newbie to ADO.net and disconnected data. Even though I have done a lot of reading I have not been able to get the following questions answered. I don't understand how a disconnected dataset is supposed to get the id field value assigned. ...more >>


Databinding to a checkbox
Posted by Marina at 9/30/2004 4:10:12 PM
Hi, I have a datafield containing Y or N. I would like to databind to the checkbox, and tell it that Y denotes the checked state and N denotes the unchecked state. In fact, I would like to be able to do something like this to arbitrary values which should denote the checked and uncheck state...more >>

Form locks up after changing a value
Posted by dougperkes NO[at]SPAM gmail.com at 9/28/2004 10:37:06 AM
I am using simple databinding on a small form with only about 10 controls. My problem is that the _second_ time I open the form and edit a value, I am no longer able to tab or click out of the control that I just changed the value in. Here's what I mean: 1. Open the app 2. Open the Details f...more >>

Data grid performance issue.
Posted by Stacey Levine at 9/27/2004 3:21:43 PM
I have a stored procedure that returns data to be shown in a grid. When I run the stored procedure from SQL query analyzer for a months worth of data, I get the response in less than 1 second. However.. when I do this to a grid.. it takes more than a minute. any ideas? Some code is below. ...more >>

oracle and datagrid problem with vb.net
Posted by ratna at 9/27/2004 1:47:09 PM
Hello, I am new to vb.net and having a problem. I am using windows forms, class libraries to connect to the oracle database. My table contains a boolean field which is stored as varchar2. I am retrieving the values from the database and displaying them in a datagrid using oracledataadap...more >>

Data connection not working properly in Server Explorer
Posted by Zachary Turner at 9/27/2004 10:45:56 AM
I have a data connection to an access database, and inside the access database there is a query of which the text is: SELECT Name FROM Items WHERE Name LIKE '*Crystal' ORDER BY Name; When I run this query in Access it works fine, and I get back a list of all entries in the Items table which ...more >>

two issues on data binding
Posted by cnSoftware at 9/24/2004 11:05:54 PM
Hi, I have tow problems when I am writing a win-form program. The First is: On a form, I place two textboxes, two buttons and a dataGrid. Then I bind them to a dataView like this: ... dataView = dataSet.Tables[0].DefaultView; dataGrid.DataSource = dataView; textBox1.DataBindings.Ad...more >>

Asynchronous SqlCommand execution
Posted by George Gîta at 9/24/2004 5:57:09 PM
I there a way to execute a SqlCommnad asynchronous? Or to open an dataset asynchronous? Like in ADO using adAsyncFetch. Thank you ... ...more >>



Deleting Items
Posted by Alx Sharp at 9/24/2004 11:50:51 AM
Hello group... I've created a class derived from CollectionBase that implements the following interfaces: IBindingList ITypedList IListSource And for my collection items I've created a class that implements the IEditableObject interface. Everything works fine, I can bind my collect...more >>

Forcing changes to a bound source during edits
Posted by Steve McLellan at 9/24/2004 3:17:38 AM
Hi, Given a textbox bound to a datasource, is there a way of pushing the value from the textbox on, say, a KeyPress event? There doesn't seem to be much documentation for data binding in general, and I'm sure I'm missing something simple. I've tried using EndCurrentEdit, but there's somethi...more >>

Delete rows in a datatable based on a many to many relationship
Posted by Wade at 9/23/2004 12:43:20 PM
I've built a query form that will populate a datatable by generating a SELECT statement that pulls data from a database table according to selections made in a series of listboxes on the query form. Two of the listboxes contain items that are in many to many relationships, so the IDs of those ...more >>

ComboBox with multiple columns
Posted by George Gîta at 9/22/2004 11:33:01 AM
Is there a control in VB .NET that has the functionality as the Combo box in Access? I'm interested especially in multiple columns property. Thanks in advance ... ...more >>

Windows Forms Datagrid Adding, Updating ,Deleting
Posted by Rajeev at 9/22/2004 4:29:53 AM
This is rarely answered by anyone who here this questions, because i think most the people did't know the answer about this question. If anybody who are willing to help a group of students help us email rajeev_gt@rediffmail.com...more >>

binding to usercontrol
Posted by Zhenya at 9/21/2004 9:49:03 PM
Hi, I created a user control that binds to a dataset. I noticed that the changes from the dataset are available in the user control right away. This is all good. The problem I ran into is that the changes I type into the text boxes positioned on the user control are not reflected in th...more >>

Binding Context
Posted by HungTrinh at 9/20/2004 3:39:19 PM
Hi, In my user control has two checkbox. each checkbox is binding with a property in myObject. Ex: class MyObject { private bool m_bCheck1; private bool m_bCheck2; public bool Check1 { get{ return m_bCheck1;} se...more >>

DataGrid Navigation Help with CollectionBase
Posted by Robert Bouillon at 9/20/2004 1:07:53 PM
I can't seem to navigate a custom collection effectively. If I navigate to a child Collection, then the collection show up blank (Seems reflection isn't able to get the Member info). If I bind to that child directly, the DataGrid populates fine. I've tried applying a Style manually, but it onl...more >>

[DataGrid] Formatting values before binding
Posted by Jesper Stocholm at 9/20/2004 7:07:46 AM
I have a WinForm datagrid that receives data from a DataSet. One of the colums is anm INT-column from the database, and I would like to format these INTs before binding them to the control. I format the grid by applying a style to it, and I have seen in the doc that there on the object Data...more >>

Why textboxes don't go blank when I click addnew
Posted by Dennis at 9/20/2004 1:49:07 AM
Why textboxes don't go blank when I click addnew. I have a FullWord form displaying KeywordSets in textboxes and a checkbox, a grid in synch with the textboxes, and two child grids tied by relationships to KeywordSets. One is Keywords and the other is SearchPhrase. I have several proble...more >>

Update data from textbox using Dataset and databinding
Posted by Ken at 9/18/2004 11:15:05 AM
Hi, I have a very simple webform which I would like to use to record peoples input. In am able to create a SQLDataConnection & SQLDataAdapter to connecti to the SQL database. I am then able to set the parameter in the SelectCommand so I retrieve the data which I want. After I do that I c...more >>

column 'code' does not allow nulls...
Posted by SLI at 9/16/2004 11:19:41 AM
Hi Everybody, I find the problem that is the CheckBox Problem?? If I dont use the CheckBox press the AddCommand is work? But when I use the Check Box it will come out the error : column 'code' does not allow nulls... Someone can help me solver this problem......... Many Thanks This i...more >>

Update Changes and DataRowview
Posted by Alex Reid at 9/16/2004 10:50:46 AM
I have a simple form that I am trying to use to set application level persmision When I click the update Function I get a system error I cannot explain the code is as follows Dim datarw As DataRowView datarw = dv1(recindex) datarw.BeginEdit() datarw(1) = ...more >>

Order of Columns in the Datagrid binding.
Posted by John Sun at 9/15/2004 3:50:49 PM
Hi, Dear gurus, I want to bind my collection to a datagrid. The field names in my object show up in a weird order, and I just wonder how I could reorder those columns . I find some code like the following , but I don't want to do it that way because it won't work if I have large number of ...more >>

IListSource.GetList
Posted by LF at 9/14/2004 8:48:39 PM
Hi all, I have a question on implementing IListSource.GetList If I implement it on my binding component, does winform databinding expect to get same IList reference always after the initial databind? Basically does it at some later time call GetList again and expects same reference or same...more >>

detect addition in Arraylist with databinding
Posted by bruno.nogent NO[at]SPAM metaxis.fr at 9/13/2004 7:55:13 AM
Hello My arraylist have 10 objects. How can i update my datagrid when I add an object to the arrarlist with databinding ? Thanks...more >>

Problem with databinding
Posted by Paul Smith at 9/13/2004 5:51:13 AM
Hi, New to this game. I am trying to create a basic application but have come up against a stumbling block with regards to the above and using a combo box. I have got a list of employees in a user_name field. These are displayed correctly in a combo box, what I want the application to do...more >>

Making databinding on usercontrol behave like databinding on normal controls..
Posted by W.G. Rowland at 9/12/2004 11:16:52 AM
Hi, I have a problem with some databound usercontrols I'm working on.. The controls are mainly groups of textboxes used for displaying and editing chunks of related data that will appear on multiple forms. Each control consists of labels and textboxes.. Each textbox has a public property ...more >>

My Problem : Column 'code' does not allow nulls
Posted by SLI at 9/11/2004 9:17:22 AM
Hi Everybody, I find the problem that is the CheckBox Problem?? If I dont use the CheckBox press the AddCommand is work? But when I use the Check Box it will come out the error : column 'code' does not allow nulls... Someone can help me solver this problem......... Many Thanks This i...more >>

Databinding and User defined controls
Posted by Mitch at 9/10/2004 5:58:29 PM
Hello all. I have the following problem and i couldn't find a solution. I made a control which contains 2 radio buttons. I that control i have a property (bool). That property tells me which one of those radios are checked. I have a form where i have my control. After i modify some fields i...more >>

Simple 'NULL' / Databiding prob got me stumped..
Posted by radmelick NO[at]SPAM gmail.com at 9/9/2004 2:15:04 PM
Ok, I'm new at this and learning as I go, but under extreme pressure from work.. So many bugs and little tricky obsticals have got me very far behind, and this is the latest.. I made a simple databinding form, but not using the wizard, because it doesn't use the SQL driver. I'm keeping it s...more >>

CurrencyManger on child table DataView
Posted by David Lei at 9/9/2004 11:36:25 AM
Hi, I have a DataSet with a set of parent & child table, a relation is defined. I then create a dataview and bound it to a single datagrid. DataView dv = new DataView(ds.Table["parent"]); dataGrid.SetDataBinding(dv,""); Everything works as expected, I can click on the "+" to see the child...more >>

How to sort datagrid and keep the bound data as sorted?
Posted by GoodMorningSky at 9/9/2004 9:20:59 AM
Hi, all. The most irritating thing about .net with datagrid is sorting feature. With vb6, I've used flexgrid or 3rd party component(spread) with sorting feature. But, with datagrid, if I click header and sort it, the actual data bound is not sorted so the data is messed up! The data I see is d...more >>

RowFilter & Date
Posted by David Lei at 9/8/2004 6:36:44 PM
Hi, How do I set a filter for a datetime column? I want to get only the rows within a month like this: dv.RowFilter = "CreateDate >= '9/1/2004' AND CreateDate <= '9/31/2004'"; I got this error "Cannot perform '<=' operation on System.DateTime and System.String." instead. Any sugges...more >>

Custom BindingContext
Posted by John Campion at 9/8/2004 9:42:19 AM
Does anyone have an example of a custom bindingcontext? I want to have the databound controls update the data with each keypress rather than wait for focus to be lost. It seems that a custom bindingcontext might be the solution. John ...more >>

My Problem : Column 'code' does not allow nulls
Posted by SLI at 9/7/2004 3:16:35 PM
Hi.... Column 'code' does not allow nulls I have a WinForm, When I press the Add Buttom after... I get the above error message...??? The about 'code' is Primary Key and the Data Type is nvarchar.....Please help me how to solver this problem. Many Thanks Here is my Add Buttom program...more >>

Tabcontrol Databind Problem
Posted by María Isabel at 9/6/2004 5:42:16 PM
I have one Tabcontrol with two tabpages. In each tabpage there's a textbox with it text property binded to a dataset The problem is that the textbox of tabpage 2 is empty till I click on this tab. If I check IsBinding property it is set to False on the second tab and true on the first. Some...more >>

Problem with DataView.Add() : the new item isn't shown/focused in the ListBox
Posted by Lorenz Kahl at 9/4/2004 6:12:21 PM
Hi, sorry for cross-posting from the adonet-group. It fits in both I guess. --- I have a real serious problem I can't figure out myself. Here's the pretty plain scenario: I have a DataSet with one table. I created a DataView on that table. I have a Listbox bound to the DataView to sel...more >>

DataAdapter.Update(DataTable) and output parameters...
Posted by Mark Essex at 9/4/2004 1:10:45 PM
I have some code like the following: foreach (System.Data.DataTable dt in dataSet.Tables) { dataAdapter.Update(dt); } This updates the various datatables in my dataset fine, however, any output parameters don't appear to be updated. For example, if I am in the debugger, and step ...more >>

How to write SQL Command for insert data from TextBox
Posted by SLI at 9/4/2004 12:05:01 AM
Urgent Urgent.... I want write a SQL Command for insert data into SQL DataTable...? Ex.... Write SQL Command for insert data from TextBox1, TextBox2 into SQL DataTable1 and then second SQL Command insert data from TextBox3, TextBox4 into SQL DataTable2 ...more >>

Best practice for inserting new DataRows with lots of 'not null'-columns
Posted by Lorenz Kahl at 9/3/2004 7:02:57 PM
Hi, sorry for cross-posting this one from the adonet-group. --- I'm pretty new to Winforms & DataBinding and I'm currently running into a lot of issues. Sorry if this has been explained before. I have a DataSet containing a table 'Member' that holds a lot of columns with info about mem...more >>

Databinding and setting control value in code not working?
Posted by Mark Essex at 9/3/2004 10:07:33 AM
Is there an event that must fire if you set the value of an control in code? For example, I have a combobox that is bound to a dataset. If I check/uncheck the combobox, everything is fine during the save. However, when I create a new Row in the dataset, the default value for the checkbox is DB...more >>

Dataset Merge Question...
Posted by Mark Essex at 9/3/2004 10:01:29 AM
I have a dataset that has 5 DataTables in it. I also have a 'working' dataset that is a copy of one of the datatables in the main dataset. I want to be able to call the DataSet.Merge() method, passing the working dataset, and it merge with the appropriate DataTable in the main dataset. Is this...more >>

How to make UpdataCommand for 2 SQLDataAdapter
Posted by SLI at 9/3/2004 2:29:57 AM
I have build a form....in the form all is TextBox, Now I have 2 SQLDataAdapter (2 SQL DataTable "cus" & "cust"), When I push down the Updata Buttom, It only updata the "cus" DataTable, the another one "cust" DataTable no response....??? Here is my Updata Segment: --------------------------...more >>


DevelopmentNow Blog