all groups > dotnet windows forms databinding > march 2006
C# Windows Forms Freeez
Posted by Lam at 3/30/2006 4:46:09 PM
hi
I am writing a C# windows program which will get datatable from database =
through ODBC connection
then I show the the datatable on DataGridView.
The problem is that before the datatable get returned, the GUI freezes. =
I can't move it=20
On the program, I have different queries to get the... more >>
Currency Data in TextBoxes
Posted by MartinMCU at 3/29/2006 3:33:51 PM
Hello All,
I am developing a database front end in C#, using Windows Forms as provided
by Visual Studio.NET 2005. I have several fields that are of the SQL Server
2005 datatype "money" and as such, I would like these fields to be displayed
as currency on my Windows Forms. I am trying to fig... more >>
How to bind ComboBox to ArrayList
Posted by JT at 3/29/2006 1:17:04 PM
Hi,
Just a quick question... I am trying to bind the SelectedValue of a combobox
to an ArrayList column, and can't quite get it. No problem with the
DataSource, DisplayMember, and ValueMember. My code is below, with the
problem line in ****
Thanks.
John
Class MyForm
Protecte... more >>
Building DataGridViewColumn for specific type
Posted by Andy at 3/29/2006 5:58:01 AM
Hi,
I have two related questions. The DataGridViewColumns that ship with the
framework don't seem to be able to bind to collections. I'd like to build a
custom column that will handle a specific collect type (a custom object which
I've developed). How can I make the column only accept bi... more >>
DataGridView not updated when Empty
Posted by wrytat at 3/26/2006 2:57:12 PM
I have a window form with a drop-down list and a datagridview. The user gets
to choose the table that he wishes to see from the drop-down list, and the
datagridview will show the results. Whenever he select a different table, the
code just changes the datasource.
The problem I'm having now... more >>
Datagrid: Prevent additions
Posted by Jonathan Crawford at 3/26/2006 12:00:00 AM
Hi
is there a setting to allow the datgrid to
allow edits but prevent new lines being added
thanks
jonathan
... more >>
PropertyChanged Notification updates all properties on databound object
Posted by Clint at 3/24/2006 6:06:03 AM
Why is it that when I signal a PropertyChanged event through the
INotifyPropertyChanged interface for a specific property, all the
databound properties for the same object are pushed to the controls
they are bound to.
I'd just like the one property that is changed to be updated.
Any ideas w... more >>
DataSet Designer Behavior
Posted by Chuck P at 3/21/2006 10:17:39 AM
When I create a new DataSource and then look at it in the DataSet
Designer I notice some issues.
Fields which in the database which do not allow NULL have the
AllowDBNull propery set to true.
Fields in the db which allow Nulls have NullValue property set to
ThrowException.
Also
If I ch... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I DataBind to a control when Textbox.visible=false
Posted by Rob Dob at 3/20/2006 8:53:47 AM
Hi,
I'm not sure if I going about this the correct way.
I have some databound TextBox's displayed on a winform that are bound to my
BindingSource. When I make modifications to any of these textboxes and
then try to save these changes everything works fine. However I have a
requirement... more >>
Building Data Relation between tables with more than 1 column
Posted by wrytat at 3/17/2006 1:13:27 AM
Hi,
I have 2 tables in my dataset, and I'd like to create relations for them so
that when I click on a row in the datagrid A showing table A, datagrid B will
display all the respective rows related to table A in table B.
I know how to do that if it's a 1 column to 1 column relation. But the
... more >>
Where is the "Add Related Databound UI" dialog, or even the DataConnector?
Posted by Andrew Kidd at 3/14/2006 10:19:47 PM
Hi,
I'm following several examples of how to build a master-detail form and
these all refer to a DataConnector, which I don't have or see.
Can someone please point me in the right direction as to how to establish a
relationship in VB.Net 2005.
Many Thanks
Andy
... more >>
BindingSource, Archiving Old record before saving new changes
Posted by Rob Dob at 3/14/2006 5:19:26 PM
Hi,
I have fields on a form bound to a BindingSource, I would like to be able
to archive the orginal record prior to saving the most recent changes to the
database. What is the recommended approach to doing this? Is there an easy
way to view both the changed and unchanged state of the sa... more >>
Bind Data to Tooltip
Posted by Jörg Boekhoff at 3/14/2006 2:15:03 PM
Hello,
how can I create a DataBinding that sets a property of a control extension
like Tooltip?
E.g. I have a Form with a Button and a Tooltip on it. How can I set the
tooltip for the button via DataBinding?
Jörg
... more >>
Two ComboBox with same table
Posted by IT'Slop at 3/13/2006 3:30:23 PM
Hi guy,
I have problem with databing. I have:
First table that rappresent the main transaction and a Second table that
rappresent the ports
of a voyage. I want to bind two combobox from two fields of the first table
and and a dataadapter
for the second table. At design time I have binded cor... more >>
Databind to Combobox with Lookuplist
Posted by Keith Pursglove at 3/13/2006 11:49:28 AM
Hi
I am creating a movie database with .NET 1.1. Some movies have more than one
title. So movies are stored in table 'tblGeneralInfo' and movie titles are
stored in a separate table - tblMediaTitle. There is a Dataset relationship
(GeneralInfoMediaTitleRelation) between these two tables.
... more >>
Ignoring IEditableObject.BeginEdit for children
Posted by cretzler NO[at]SPAM community.nospam at 3/7/2006 3:49:28 PM
Hello,
I'm having an issue understanding when I should ignore the
IEditableObject.BeginEdit call with respect to datagrids. I am working with
C# .NET 1.1.
I have the following objects I am working with.
ContactCollection -> Inherits from CollectionBase and Implements ITypedList.
Contac... more >>
DataGridView Remembers Data in Removed DataTable
Posted by michael at 3/6/2006 2:50:13 PM
I have a DataGridView which is bound to a DataTable in a DataSet (VS 2005).
When I "re-" Fill() a DataTable which is bound to this DataGridView, I
usually set the grid's DataSource/DataMember to NOTHING, remove the table
from the DataSet, reAdd the table with the Fill() and finally rebind the ... more >>
Suggestion on Database
Posted by wrytat at 3/6/2006 12:31:27 AM
We are writing a wireless system to facilitate data transfer between the
factory and the office. As we are worried about the weak wireless signal,
instead of using a MS SQL server, we are thinking of using something else
that is saved in each computer, i.e. 1 data file per workstation. Somethi... more >>
dataGridViewComboBoxColumn binding error on selection
Posted by Andreas van de Sand at 3/6/2006 12:00:00 AM
Hi,
I've got a DGV, bound to an object data source (ods). The ods has some
objects in it, which are displayed as dataGridViewComboBoxColumns.
Now, I bind these columns to a data source, which is a typed list, and set
the DisplayMember to something sensible. So far so good, I run the projcet ... more >>
Share BindingSource between two forms
Posted by g18c NO[at]SPAM hotmail.com at 3/3/2006 1:00:32 PM
Hi, i have two forms and im having problems sharing the binding source
between the two.
I am using custom business objects, and in the designer set form one's
binding source's data source to my business object type in the data
sources window. The designer then places the code in the form:
m... more >>
Type conversion in design-time data binding?
Posted by David Veeneman at 3/2/2006 12:41:05 PM
Can I use design-time data binding to bind two properties that have
different types, if the types can be converted to one another?
For example, let's say I have a control that takes an integer from one of
its properties. I have a business object that takes a float for one of its
properties.... more >>
|