all groups > dotnet windows forms databinding > february 2006
Filter by week: 1 2 3 4
Visual Studio 2005: HowTo use Databinding with Treeview-Contol ?
Posted by G._Völkl at 2/24/2006 7:49:51 PM
Hello,
window forms treeview control has now a datasource attribut, but I didn't find any example to bind a datasource
so you see some nodes.
Can anyone help me ?
Best Regards
Gerhard ... more >>
DataSourceConverter in .net 2
Posted by Jeronimo Bertran at 2/23/2006 4:23:38 PM
I have a custom control that has a DataSource property that uses the
DataSourceConverter TypeConverter and two DataMember properties that use
the DataMemberFieldEditor to allow the user to select the fields.
In .net 1x the designer allowed a DataTable to be selected as the
DataSource. In t... more >>
MySettings as a data source
Posted by Tim Ferguson at 2/23/2006 10:20:21 AM
I know I am missing something conceptual here, probably pretty simple too.
I am trying to make a user preferences dialog box.
I have a Windows form with suitable textboxes on. In VB 2005 Express, I
created a datasource from the My.Settings object, and dragged the "fields"
from that dataso... more >>
Validate required fields in Windows Forms
Posted by Jeronimo Bertran at 2/22/2006 10:32:05 PM
I created a form that include a BindingNavigator. My BindingSource has
some required fields. If I use the bindingNavigator AddNewItem the bound
controls are cleared. If I press the AddNewItem again I get an exception
because som required fields are not set.
I tried using the Validating e... more >>
From Datagrid to DataBase
Posted by Sylvain Bissonnette at 2/21/2006 8:25:08 PM
Hi,
I have a winform with a datagrid who is filled from a database, this
is working. Now I had place
a "save" button on my form. This is where I'm lost, the main question is
how can I fill my database
with the new data from the datagrid?
Any code snipper, url, hints will be ... more >>
Name of the child table with Master/Details configuration
Posted by Antoni Gomez at 2/21/2006 12:19:16 PM
Hi.
I need to know the name of the child table with Master/Details
configuration.
This child table is binding with DataGridView
The DataSource of this DataGirdview is a Child BindingSource control.
I have used various techniques but I can not resolved it.
How Can I find the name of the ... more >>
Problem: Invalid values returned from a checkbox column
Posted by stockbuildingsupply at 2/21/2006 6:50:27 AM
i have a bound dataviewgrid with a checkboxcolumn. when the user clicks a
checkbox if the value is true i want a button to be enabled. the logic is:
1-loop through checkboxcolumn cells
2-if the cell value is true enable the button and exit loop
3-if there were no checked cells disable the but... more >>
BindingSource - Nested Properties
Posted by Chris at 2/19/2006 11:32:51 PM
Hi @all.
I have a problem with the use of a BindingSource in connection with
nested properties (relations).
Let´s imagine the following situation:
class Person {
public ICollection<Position> Positions {
...
}
....
}
class Position {
public string Description {
.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Trapping AddNew
Posted by Laurin Stoll at 2/19/2006 6:28:31 AM
Hi
Is there a way to tarp the AddNew event on the BindingNavigator to do some
checks before allowing BindingNavigator to add a new record?
Thanks
Regards
... more >>
Binding a StatusBar Panel Text property - Solution?!
Posted by Matt at 2/17/2006 3:03:40 AM
I've found that the StatusBar Panel object does not have a DataBindings
property which doesn't help if you want to do such a thing.
Searching the web and these news groups didn't present me with an
answer so I thought I'd post what I came up with to help others.
Add another control to your f... more >>
BindingSource.ResetBindings, the opposite way
Posted by Maxwell2006 at 2/16/2006 9:18:35 PM
Hi,
I understand that BindingSource.ResetBindings causes a control bound to the
BindingSource to reread all the items in the list and refresh their
displayed values.
The question is that how can I force the BindingSource to put controls' data
back to underlying data source?
... more >>
Problem with Enabled/Disabled AlloEdit in BindingSource
Posted by Antoni Gomez at 2/15/2006 2:51:02 PM
Hello.
I have a GridView connected with bindingSource and BindingNavigator.
I want disable to delete the grid at run time.
For this, I disabled the DeleteButtonItem on the BindingNavigator Bar and
disabled the AllowUsertoDeleteRows property of the Grid.
The problem is that when I run ... more >>
Checking User Data Input on a Form
Posted by Laurin Stoll at 2/15/2006 10:19:30 AM
Hi
Sorry my english isn't the best ;-)
I've got a Windows Application Project in Vb.NET.
There's a form which contains some Textboxes, an component of my typed
DataSet, a BindingSource, a BindingNavigation, and a datatableadapter
component.
All this is created by the designer, i just dra... more >>
DataGridView CellStyle Format
Posted by Steini at 2/15/2006 4:45:28 AM
Hello,
my int values in a column should look like "34 m³". I tried to set the
Format Property of the DefaultCellstyle from the column to "0 m³" or "0\"
m³\"". The DataGridView displays it correct, but when I edit the value "34
m³" by deleting the first number to "4 m³" I get an Parsing... more >>
DataGridView_CellValidating
Posted by Andre Mens at 2/14/2006 7:33:03 PM
Hi
How can i get access to the column for wich the validating is happening ? In
the following event?
DataGridView_CellValidating(object sender,
DataGridViewCellValidatingEventArgs e)
Is this the place to check if the column has a valid value ?
Greetings Andre Mens
... more >>
SuspendBinding method - strange behavior
Posted by Nik at 2/14/2006 12:21:01 PM
Hello,
I noticed that, when I call the SuspendBinding method on a
BindingContext of a form, and then manually change something in the
underlying data source, it forces a refresh of all bound properties,
even though binding has been suspended. All values read are
System.DBNull in this case. I ... more >>
DataGridTableStyle problem
Posted by Jonathan Crawford at 2/14/2006 12:05:37 PM
Hi
I have a datagrid (ui_grdProduct) and I want to change the columns. I think
the code below should work
but it does absolutely nothing. I am clearly missing something simple.
I would appreciate a pointer
thanks
jc
Dim tableStyle As New DataGridTableStyle
tableStyle.Mappi... more >>
Selectively populating ComboBoxColumns in a DataGridView
Posted by Kjell at 2/14/2006 4:34:52 AM
I'm trying to use a DataGridView to list a number of artifacts from a
DataTable. As there can be duplicate instances of one artifact stored on the
disk there is also a related "Source" DataTable that holds the file paths to
each instance of an artifact. Now I want to include a ComboBoxColumn i... more >>
How to determine if a value has changed as a result of data binding
Posted by Nik at 2/14/2006 1:52:14 AM
Hello,
if I bind a property of a control to a field in a data source, is there
a way to know that its value has changed as a result of data binding.
For example, if I bind Text property of a TextBox, I need to know that
TextChanged event was triggered because value has just been read from
the... more >>
Show Master-Detail Data in separate datagrid
Posted by _(d)IEGO at 2/13/2006 4:17:47 PM
Hi everyone,
I'm new to VB .Net and I want to display a master-detail data in two
separate datagrids, like grid1 will have all the master records and
when i click a row in grid1, grid2 will display the details for the row
that i clicked.
thanks in advance
diego
... more >>
Detecting changes to data
Posted by Jim H at 2/13/2006 2:11:28 PM
What is the proper way to indicate that changes have been made to data on a form so
that an Update method can be called when the Form closes, if and only if, there have
been changes made to the data by the user.
I started with the Walkthrough: Displaying Data in a Windows Form Using a Paramet... more >>
Foreign key binding
Posted by Toby Groves at 2/12/2006 1:50:37 PM
Hi,
Just starting to get to grips with this stuff so forgive me if my
questions are somewhat basic.
I'm having a spot of bother binding interface controls to foreign key
items in a dataset. As an example, say I have a dataset consisting of
two tables, Address and Country. The Address t... more >>
class Binding vs. class BindingSource
Posted by Sneil at 2/12/2006 5:44:11 AM
FW 1.0/1.1 both have class Binding - it maintains a simple binding
between a property on a control and a property on a single object. FW
2.0 suggest new class - BindingSource. I try to understand - how these
two classes are related to each other? Does BindingSource just more
functional and power... more >>
BindingContext, Simple Problem, Need Help
Posted by Jim H at 2/11/2006 2:34:00 PM
This is my first attempt to establish DataBinding. I have added an
Event Handler for dsAuthors1, table authors, but it has no effect.
What am I overlooking?
/*********************************************************************
@btnShow_Click() -- Fills the DataSet dsAuthors1.
****... more >>
PropertyChanged event and Data Binding
Posted by Sneil at 2/11/2006 11:06:33 AM
I try code sample from article
"Windows Forms Programming
How to: Add Change Notification for Data Binding"
(for VS2005's off-line MSDN link to this article:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_fxmclidata/h
tml/b5b10f90-0585-41d9-a377-409835262a92.htm)
In this code ... more >>
Sorting Query Results
Posted by wrytat at 2/10/2006 1:05:27 AM
I'd like to display the data stored in a table sorted by a certain field. I
want it such that those with values for that field will come first, while
those that have the field empty will go last. If I use the Order By clause,
records with the field empty will come on top instead. How can I go ... more >>
parent-child and comboboxcolumn
Posted by at 2/7/2006 4:50:30 PM
Hi NG!
Is there any way to have a ComboBoxColumn display a different set of values
for each different row in a DataGridView? What I mean is, given the
following situation,
ParentTable
parent_id (1) ......... active_child_id_fk (3)
parent_id (2) ......... active_child_id_fk (4)
parent_... more >>
DataGridView and array of DataRow objects
Posted by Tomislav at 2/7/2006 3:30:38 PM
Hi all
Is it possible to bind DataGridView to a datarow array. For example, array
which is returned by Select method of a DataTable object.
I know that I can probably use DataView object as a data source.
Thanks
... more >>
Dirty forms in master-detail databinding
Posted by David Veeneman at 2/7/2006 1:32:31 PM
I'm setting up a summary-detail form using a BindingSource control, a
DataGridView (for the summary), and a UserControl (for the detail). The user
control that hosts several text boxes, radio buttons, and so on, which can
be used to update the BindingSource's Current value. I discovered pretty... more >>
Binding a property to custom collection
Posted by dave_wurtz NO[at]SPAM asdsoftware.com at 2/6/2006 8:27:13 AM
All,
I have a custom control that has a property strong typed as one of my
custom collection (inherits from System.Collections.CollectionBase and
implements System.ComponentModel.IBindingList). I am trying to build a
databinding through the VS2005 IDE Formatting and Advanced Binding
window. ... more >>
How can I add an unbound row to the end of a data bound DataGridView?
Posted by Maxwell2006 at 2/5/2006 11:01:59 PM
Hi,
I have a DataGridView in my form which is bound to a DataTable.
I am setting up a summary row at the end of my DataGridView rows that shows
the total for $ columns.
Is there any way in data bound DataGridView to setup the last row as
calculated/unbound row?
Thank ... more >>
DataGridView, can it display related from a relationship in dataset in heirarchical View
Posted by Marlon R at 2/3/2006 8:22:23 PM
Can the DataGridView display heirarchical data?
If yes can someone please point me to some documentation or examples.
... more >>
CheckBox binding to a character 'Y/N column
Posted by Maxwell2006 at 2/3/2006 2:04:26 PM
Hi,
How can I bind a check box to a string "Y/N" column in my datatable?
I am asking because I assume that checkboxes are bindable to boolean column.
Am I right?
Thank you,
Alan
... more >>
Interview Questions Feb 03 2006
Posted by Jobs at 2/3/2006 1:22:08 AM
Where is version information stored of a assembly ?
Version information is stored in assembly in manifest.
Is versioning applicable to private assemblies?
Versioning concept is only applicable to global assembly cache (GAC) as
private assembly lie in there individual folders.
Full Intervi... more >>
Adding new record to database C# VS2005 Windows Mobile CF2 PocketSql
Posted by AAJ at 2/3/2006 12:00:00 AM
Hi all
My second post in 2 days.... can anyone help me ...please...
What I'm trying to do is so simple, i've done it a million times in VB6, VBA
etc.. but I'm coming up with one problem after another using the dot net
frame work, it all seems so much more complicated and convoluted (my fau... more >>
DataView Issue
Posted by chris at 2/2/2006 2:48:01 PM
Hello,
I am having a problem with retrieving sorted information from a
dataview. I am working on a simple application, which uses a dataview
object to sort data by one column ("d")
I have no problem populating the dataview from my existing dataset,
which has a table called "events"
Dim dv A... more >>
Difference between CurrencyManager and Bindign Context.
Posted by AAJ at 2/2/2006 12:00:00 AM
Hi all
I have been learning about bound forms on Pocket PC devices.
Initially I have been using things similar to
this.BindingContext[DSQuestions, "tbl_details"].Position--;
to navigate the record set. All has worked well.
However, while learning about bound recordsets I stumbled acro... more >>
Databind column to property on another referenced object...
Posted by Nathan Baulch at 2/1/2006 12:00:00 AM
How do I databind a DataGridView column to a property on another referenced
object? That is, I want to bind to "Parent.Name" where Parent is a property
that references another object.
I know this can be done when databinding TextBoxes. Surely it can also be
done with grid columns.
The fo... more >>
|