all groups > dotnet windows forms databinding > august 2006
Filter by week: 1 2 3 4 5
DataGridView: how to bind to an object within a collection of business objects
Posted by bzakett1 NO[at]SPAM rochester.rr.com at 8/31/2006 4:37:56 AM
VS.net 2005 designer question:
I have a collection of business objects (Customers) bound to a
datagridview. I want to bind a column in the datagridview to the
property of an object (HomeAddress) contained in the Customer business
object. For example: Customer.HomeAddress.State
I have set th... more >>
BindingNavigator throws Exception on Move away from New Row
Posted by AxelHecker at 8/31/2006 2:08:01 AM
Problem:
I have two DataTables linked as parent and child via BindingSources, where
the child BindingSource uses the parent BindingSource as DataSource and the
foreign key relation as DataMember in order to provide for proper observation
of parent child relations in the form.
When I want... more >>
Concurrency violation at update
Posted by John at 8/30/2006 12:00:00 AM
Hi
I had a working vs 2003 application with access backend. I added a couple
fields in a table in access db and then to allow user to have access to
these fields via app I did the following;
1. Regenerated the data adapter sqls by running the data adapter wizard and
pasting the resulting... more >>
Binding Source ComboBox
Posted by Chuck P at 8/29/2006 3:04:02 PM
I have a form which is bound to a datatable via a bindingsource.
i want to have a combo box that as the first item in the ComboBox has
a display value of "Pick One" for new records.
Because I have a lot of ComboBox's I made some helpers.
public static void ComboBox_Load(ComboBox comboB... more >>
Show limited columns in Datagridview?
Posted by pedestrian via DotNetMonster.com at 8/29/2006 2:31:55 AM
I have a Datagridview with a dataTable as DataSouce. The Datagridview
automatically show all the columns in the datatable. Is it possible just to
show one or two columns out of says, all 5 columns in the datatable?
Thanks.
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.c... more >>
Refreshing the data in a dataview
Posted by Enoch Evans at 8/28/2006 1:51:48 PM
Hello,
What I'm trying to do is simple, I'm trying to force a dataview to =
refresh its data from a dataset. Here's the overall situation, I have 2 =
tabs on my form, one for inserting new placements and one for modifying =
existing placements. After I add in a new placement on tab 1 I want ... more >>
Manipulating data between data adapters
Posted by John at 8/28/2006 12:00:00 AM
Hi
I have two data adapters bound to two separate tables. How can I;
1. Loop through all records one by one in one of them while reading column
values, and
2. Insert a record from data adapter A into data adapter B
via code?
Thanks
Regards
... more >>
DataGridView: multiple cell types in the same column...
Posted by Ben Callister at 8/27/2006 8:45:19 PM
i have a DataGridView control that is being used to enable users to edit a
list of patient demographics. it has 2 columns and several rows, each
mapping to a different patient demographic. because each row maps to a
different patient demographic, you can think of column1 as 'PropertyName'
an... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Cannot read value from invisible textbox control
Posted by MartinMCU at 8/27/2006 4:54:01 PM
Hello All,
I am developing a Windows Form to allow master/child records to be viewed
and edited in a SQL Server 2005 Database. I am developing in Visual Basic
2005, and am running into a bit of a problem. Simply put, I can not get the
value from a hidden textbox control on the form.
Thi... more >>
How to binding the ListDictionary to combobox?
Posted by ABC at 8/26/2006 6:57:42 PM
How to binding the ListDictionary to combobox?
I have a simple ListDictionary named as "myRecStatusList" and contains
values as:
Key Value
----------------
Active A
Inactive I
I tried to binding with combobox as:
How to binding with combobox?
... more >>
systray app - help
Posted by Arvi at 8/25/2006 10:35:22 AM
Hello,
Im quite new to c# windows application.
i need to write a application which stays on the systray and listens to the
SQL Table. (when the value is inserted as 0 - done thru Dataset and check it
every2 seconds?) i need to open another application thru command prompt and
pass the parame... more >>
Custom Object Events Not Changing DataGridView
Posted by Ollie at 8/25/2006 7:54:02 AM
Hello
Please help me...
I have created an object and implemented the IBindingList.
The object is as follows:
1 project has many Sections
1 section has many items,
1 item has many lines.
I have bound this object to four datagridviews to display the master-detail
reationships. (Thanks ... more >>
BindingSource Properties
Posted by Chuck P at 8/23/2006 11:10:06 AM
I see the BindingSource has properties for AllowNew and AllowEdit.
I couldn't figure out how to set these properties.
In my Form Load event I did the following but it had no affect, The
BindingSource still had AllowEdit as True.
private void Form1_Load(object sender, EventArgs e)
... more >>
Modify Values of databound textbox before they are stored in underlying DB
Posted by Angelo Campitelli at 8/22/2006 9:03:44 PM
Hi,
I have a db field that contains a password i would like to run a function to
decrypt the value before its returned to a bound textbox and before the
field is updated encrypt the contents.
Is there an easy way to bind a field but modify the contents as its being
passed to/returned fro... more >>
How does a Control tell the data binding that its property has changed
Posted by Andrew at 8/22/2006 3:15:28 PM
I have created a new Control that has a property called "Value". I am data
binding to this and have set the binding update mode to "OnPropertyChanged".
The problem is that the binding does not get updated as soon as there are
changes.
How does the binding know that a property has changed?... more >>
Build a general Databinding class
Posted by orianavim NO[at]SPAM gmail.com at 8/21/2006 1:17:34 PM
Hi,
I'm looking to find an efficient way to make our business layer be
bi-directional Bindable to our UI layer.
I'm familiar with the "INotifyPropertyChanged" interface, but
working with this interface will force me to call the
"OnPropertychange" in each one of our existing classes properti... more >>
Databinding 3 datagridviews to a 3 tier hirerarchial object
Posted by Ollie at 8/21/2006 5:59:02 AM
Hello.
I have been doing quite a bit of research to try and find out the best way
for me to bind my object to 3 datagrid views (and other items on my form).
My object is as follows, 1 project has many sections, each section has many
items, and each item has many lines.
The first datagrid ... more >>
Databinding a check list box
Posted by John at 8/20/2006 2:35:03 AM
Hi
I have a check box list box on a windows form. How can I data bind it to an
access table. I don't need a multi-tier solution. Just a solution.
Thanks
Regards
... more >>
Application settings
Posted by John at 8/19/2006 1:51:24 PM
Hi
For my db app, I need to save the location of the db (really a windows path)
which normally only needs to be set at the first app start (I can check if
the setting is missing and ask user for a value). Occasionally (once in a
blue moon) I may need to change this setting in case db is mov... more >>
Grid like access?
Posted by Klaas at 8/18/2006 9:21:26 PM
Hi All,
I'm looking for a gridcontrol like in Access with a plus sign (+) to
drilltrough datarelations.
Anyone knows where to find such a grid?
I thought it was a standard MS-Grid control but can't find it anymore in
VS2005 (.NET 2.0)
I can reference the old gridcontrol(.NET 1.0/1.1) but... more >>
Defaults for data bindings Update Mode
Posted by Andrew at 8/17/2006 4:00:04 PM
When you bind a data source to a control the binding data source update mode
defaults to "OnValidation".
I find this a pain and I would prefer the default to be "OnPropertyChanged".
Does anyone know if this default could be changed or how I could go about
overriding this behaviour. e.g. usi... more >>
Very Much a newbe - VB2005
Posted by Oh-its-all-gone-wrong at 8/16/2006 5:01:19 PM
Hi All,
Hope you all fine? Can I ask you all a quick question? I`ve been trying to
get concurrency to work for my project in VB2005. I have the following code,
which to be fair i`ve got so lost with but here it is:
Private Sub BTADSL_Load(ByVal sender As System.Object, ByVal e As
System.... more >>
Event when a controls databinding is actually completed
Posted by Benny S. Tordrup at 8/16/2006 1:10:52 PM
Hi all
I've created a control dereiving from another control. This controls has
data binding ability. Is it possible to be notified in code when the
databinding actually is completed? I need this in order to perform some
action based on the value that the control contains when loaded.
My... more >>
Impossible to leave TextBox even if Validating event sets Cancel=f
Posted by Fritz at 8/15/2006 11:10:02 AM
Hello there,
I have some TextBox objects with CauseValidation = true and bidirectional
DataBinding to some data source. Textboxes are properly updated from data
source also after data source changes.
The problem is, as soon as a TextBox Text is edited, it is not possible to
leave the Textb... more >>
binding SqlDataSource parameter
Posted by Mark at 8/11/2006 12:00:00 AM
Hi,
I have a web page with an SqlDataSource and a GridView. The SqlDataSource
has a parameter "WebId" which is the current members unique id (from
MembershipUser.ProviderUserKey).
My question is how do I bind the SqlDataSource parameter to the current
members ProviderUserKey?
At the m... more >>
binding a TextBox to a column of type GUID
Posted by Mark at 8/9/2006 12:00:00 AM
I have a TextBox bound to a dataset that is generated from an SQLServer
table that contains a "uniqueidentifier" column
The DataSet column type is "GUID" - it isn't a primary key or unique value.
The TextBox will display the GUID, but when I try to modify it, it lets me
type in the new GUI... more >>
How do I handle exceptions that are thrown during a move method of the BindingNavigator?
Posted by Peet at 8/8/2006 1:42:15 PM
I have the following problem with the BindingNavigator Control in .NET
2.0:
I first fill a DataTable with data from my database, inclusively
database schema.
After that i bind it over a BindingSource to the BindingNavigator.
When I now add an new record (by using the desired button of the
Na... more >>
Binding a TextBox to a Caption property
Posted by Joe at 8/7/2006 6:02:47 PM
This should be simple but I'm running into a problem somewhere along the
lines. Here's an example:
public class Test
{
private string caption;
public string Caption
{
get
{
return caption;
}
set
{
caption... more >>
IExtenderProvider and databinding
Posted by RJ at 8/4/2006 10:22:18 AM
VS2005 data binding wizard will recognize and list the extended control
property 'MyProperty', which is defined and exposed via IExtenderProvider
component on the form. The databinding wizard allows you to choose this
control property and select a binding object property to bind to. In other... more >>
Confirming / rejecting changes using Binding Navigator
Posted by Andy Mustapick at 8/4/2006 3:44:01 AM
Dragging the entire table from the Data Sources tool window onto a blank
form, I've created a standard "Detail" form (not DataGrid) with TextBoxes
bound to a Binding Source and a Binding Navigator at the top.
How can I determine if the user has changed the data in the current record
in orde... more >>
Simple case of databinding a comboboxcolumn to an enum (fails)
Posted by Bob Powell [MVP] at 8/3/2006 6:19:14 PM
This fails with the dreaded "DataGridViewComboboxCell value is not valid"
Why??
namespace wintest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
BindingList<foo> foos = new BindingList<foo>();
foos.AllowE... more >>
Accessing Data within a Datagridview
Posted by Jeff Boyer at 8/2/2006 2:49:59 PM
Hey there everyone,
I am new to .Net 2.0 and rusty at wondows programming. I have been doing web
development for the last 5 years. Anyway, I am working on a windows forms
project and can't figure out how to access the data in a cell within a
datagridview. Can someone show me the steps to d... more >>
DataGridView - row indicator
Posted by Mark at 8/2/2006 12:35:48 PM
How do I get rid of the row indicator column on the left hand side of a
DataGridView?
--
Thanks...
Mark
... more >>
Can't Change Databinding-- VS.Net Erroring
Posted by cmay at 8/1/2006 7:06:15 PM
I have been building my first app where I really rely on databinding.
So now if I go to change my databindings, or try to assign a binding
source, VS.Net says "Object reference not set to an instance of an
object"
To get this error, I did this:
1) Add a new form to my project
2) Drag one... more >>
|