all groups > dotnet windows forms databinding > october 2004
Filter by week: 1 2 3 4 5
Stored Procedure executed with datagrid
Posted by Wolffang at 10/30/2004 6:04:37 PM
I have a datagrid that has a checkbox...
when a checkboxes are clicked, i am updating the records that are checked...
This is what i have so far.... but i am geting an error.... where the
OrderID is not being passed from the datagrid "dgOrders" to the stored
procedure... but the checkbox ... more >>
DataBase Timestamp question
Posted by Mika M at 10/28/2004 3:59:11 PM
Hi!
My VB.NET 2003 Windows Forms application has components on the form bound to
the dataset datatable. Editing and saving is working fine, but data source
SQL Server's table has column named as "SaveTime", Data Type = datetime, and
Default Value is (getdate()). It's bound to TextBox, and T... more >>
Problem binding TextBox to array of DataRows
Posted by Steve Amey at 10/28/2004 3:31:07 PM
Hi all
I am getting the following error when binding some TextBoxes to an array of
DataRows:
Property accessor 'AddressLine3' on object 'dsMyDataSet+AddressRow' threw
the following exception:'Cannot get value because it is DBNull.'
I have been binding to DataTables until now, but I do nee... more >>
Value cleared when changing other control.
Posted by André Barendse at 10/28/2004 2:44:58 PM
Hi all,
I have a problem using databinding on a windows form.
On the form I have a typed DataRow.
DataRow type:
Name String
Blocked Boolean
On the form I have two control a Label and a CheckBox.
The databinding is added with the following code:
... more >>
NEWBIE - SQL Connection not working when app is installed on another machine
Posted by Dave at 10/28/2004 8:58:39 AM
Greetings,
I have created a simple .exe application that queries charge numbers for
employee timecards from a SQL server. It works fine on my local machine.
When I copy it to the server and run the application, I receive an unhandled
exception "Invalid Element Value."
What would cause t... more >>
Simple databinding problem
Posted by jon morgan at 10/25/2004 10:18:42 PM
Hi
I have a texbox bound to a property in a custom data object. When I edit the
textbox directly the data object is updated, but only when I leave the
textbox.
However if I change the textbox's text programatically the data object is
not updated at all. Why is this and how do I get the d... more >>
Stop default currency manager behavior?
Posted by Marina at 10/25/2004 1:30:29 PM
Hi,
Let's say I have one datatable, that I want to use as the datasource for 2
dropdowns. So both are bound to the same one.
But now, when I select a row in dropdown A, the selected row in dropdown B
changes to the same thing! Each dropdown represents a different column in
the main record ... more >>
exception: Databindings could not find a row in the list that is suitable for all bindings
Posted by Tony at 10/22/2004 12:55:59 PM
Hello,
I have a windows form application written in VB.net. When I create the first
instance of the form it loads fine. When I try to bring up another instance
of the form an exception is generated ( weather the first form is still
loaded or not). The exception is "Databindings could not find... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Moving CurrencyManager to specific row in Data Source
Posted by Mike Edenfield at 10/21/2004 12:17:07 PM
I have a series of user-bound controls that are associated with a
dataset, and need to be able to move the displayed data row in one
control based on events in another.
I have all of the controls bound to the same dataset on my form, and the
navigation controls are passing a complete DataRo... more >>
Column must belong to a table?
Posted by Paschalis Pagonidis at 10/21/2004 1:28:03 AM
Hi to all,
I get this ArgumentException just when:
((System.ComponentModel.ISupportInitialize)
(this.dataTable2)).EndInit();
runs inside InitializeComponent()...
It raises when I set primary key on the table:
The code I use is:
this.dataTable2.Columns.AddRange(new System.Data.DataColu... more >>
Class derived from PropertyDescriptor
Posted by Alx Sharp at 10/20/2004 10:13:55 PM
This is a multi-part message in MIME format.
------=_NextPart_000_0016_01C4B6F2.16B889B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello group!
I've created a collection class that implements ITypedList:
class MyCollection : IBindingLi... more >>
Paging a DataGrid or similar control...?
Posted by MJB at 10/20/2004 4:05:09 PM
I have a windows application that returns 10s of thousands of rows to a
DataGrid (for all intents and purposes you can assume that it's a DataGrid,
I'm actually using the Infragistics UltraWinGrid though). Due to the ever
growing amount of data I want to implement some sort of record paging.... more >>
How to determine a control's databinding?
Posted by no0spam NO[at]SPAM yahoo.com at 10/20/2004 3:48:37 AM
When given the name of a control, is there a way (programatically) to
determine its databinding?... more >>
hello
Posted by benoit at 10/19/2004 7:16:02 PM
hello!!!!!!!!!!!!!
... more >>
Binding and .NET Remoting
Posted by rogermk at 10/19/2004 4:58:11 PM
Can I bind controls to MBR objects?
When I try to make a new binding with a MBR object, I get the exception
"Cannot bind to property or column 'PropertyName' on DataSource.", that I
don't get in tests made with a client class.
I looked for some information about it, but I couldn't find anyth... more >>
Complex DataBinding on Custom Business Object
Posted by dancaron-nonsense1111 NO[at]SPAM mailblocks.com at 10/18/2004 7:56:07 AM
I have an ArrayList of Custom Business Objects that I need to bind to
a DropDownList. The DataBind works, but I cannot figure out how to
have the value/text fields of the DropDownList to reference the object
properties.
For instance, assume I have an ArrayList of UserInfo classes. The
UserI... more >>
DataGrid and Combobox problem in WinForms
Posted by premchand.peddakotla NO[at]SPAM mckesson.com at 10/17/2004 9:31:10 AM
Hi Group,
I am having a problem with datagird and combox box.
Say for ex, I am populating datagrid with dataset that contains table
name "Orders". This table contains one column by name "CustomerName".
I am having one more dataset say "Customers" and I populate the combo
box with the Cust... more >>
Databindings and Relationships
Posted by Oliver Lundt via .NET 247 at 10/17/2004 3:11:45 AM
I have a combobox bound to a table with a relationship=2E When the=
combobox selection changes the I change the values displayed=2E It=
works fine but only on the field in the same table=2E It=
relationship doesn't allow me to display values from the other=
table=2E Here my code:
//Add Re... more >>
Bind Custom Class to windows form datagrid.
Posted by martalex NO[at]SPAM hotmail.com at 10/14/2004 8:39:43 PM
I'm trying to bind to a datagrid a custom class with complex property
(custom class). The top data is binding fine but I cannot access the
sub-class property.
Here are my classes... I can bind the contact.id, contact.lastname,
contact.firstname without any problems however I cannot seems to b... more >>
ORA-01008: Not all variables bound Error.
Posted by ksedran at 10/14/2004 10:51:12 AM
Hi all,
I am getting this ORA-01008: Not all variables bound error when trying to
update an Oracle table from a datagrid using VB.NET.
'Code to load Datagrid---------
Private Sub TransactionDetail_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
... more >>
New Problem With TrackBar Binding
Posted by Colin at 10/14/2004 1:45:05 AM
I'm re-posting this to make sure it gets picked up by support because the
related question was answered:
I have an entity object (not a collection) with a property "Height". It's
bound to a TrackBar and a TextBox. I found out that I needed to call
BindingManagerBase.EndCurrentEdit() on the ... more >>
Problem with dataset updation
Posted by ratna veta at 10/13/2004 12:32:42 PM
Hello,
I am having a problem with dataset. I am using vb.net,
oracle, ado.net. I am having a dataset(ds1) from which i
loop through and add it to another dataset(ds2). Calling
ds2.acceptchanges in the load of the form. And all the
data gets displayed in the grid. The user can modify any... more >>
2-Way Binding to a TrackBar Not Working. What is my Problem?
Posted by Colin at 10/13/2004 12:05:02 AM
I'm trying to bind a TrackBar to an entity object of mine:
myBar.DataBindings.Add( "Value", imgConvData, "Quality" );
It seems simple enough, and the TrackBar does indeed pick up the value of
"Quality" when the DataBinding is first set. Unfortunately, changing the
value of the TrackBar (vi... more >>
StackOverflowException with the ListChanged event
Posted by Alx Sharp at 10/12/2004 4:06:08 PM
Hello group...
I've created a collection class that implements the following =
interfaces: IBindingList, IList, ICollection, IEnumerable and =
ITypedList:
abstract class DataCollectionBase : IBindingList, IList, ICollection, =
IEnumerable, ITypedList
{
private ArrayList innerList =3D ... more >>
How to get double click to work for cell in DataGrid?
Posted by Stacey Levine at 10/12/2004 12:11:01 PM
I want to have an action happen when the user double clicks on a cell.
Theonly way I have managed to get this to work is put the code in the grid's
double click event, click in the cell - then double click the row. Or if I
click in the area of the cell that
does not highlight, then it wo... more >>
DatagridView, setting Font for individual Cells
Posted by martin.nospam NO[at]SPAM berlin.de at 10/12/2004 8:25:30 AM
Hello,
I'd like to alter the font, including the background and the
foreground color of individual cells for a realtime app'.
this.dataGridView1.ColumnCount = 5;
this.dataGridView1.RowCount = 10;
this.dataGridView1.Rows[2].Cells[3].Value = "hello";
....?
Can someone help ?
Thanks, Ma... more >>
Datagrid object binding + GridTableStyles
Posted by Adam at 10/10/2004 2:09:11 PM
I am binding an arraylist of objects (class Invoice) This works fine and
binds all the public properties to the datagrid.
However, I only want to show *some* properties e.g. No, Detail and
TotalValue -- not all the public props.
After I call my gridSummary.DataSource = invoiceList;
then I... more >>
datagrid databinding puzzles
Posted by cnSoftware at 10/8/2004 8:15:03 PM
well, what's the difference between BindingManagerBase and
CurrencyManager?Instead of
BindingManagerBase I have tried to use a currencymanager in my code, but the
result is still far from my expectation.
UI of my program like this:
---------------------
| btnQuery | btnAdd |
--------------... more >>
Change databound property from code and force field update
Posted by WiZZiX at 10/8/2004 6:21:02 AM
I have 2 checkbox controls on a form. Both are bound to a different field in
one underlying datatable with their 'checked' properties .
When you click the first checkbox I the CheckedChanged event is triggered in
which I set the checked property of the second control equal to that of the
f... more >>
getting an index from a DataRowView reference
Posted by Joe Abou Jaoude at 10/7/2004 9:38:42 AM
hi,
well this seemed a simple tax in the begining but ...
I have a datagrid bound to a dataview sorted by name.
i have a reference to a datarowview, and i want that datarowview to be
selected in the datagrid.
datagrid.select need an index, and I m not able to find a way to get the
inde... more >>
Problem with zero length string vs Null when Databinding
Posted by mbusfield NO[at]SPAM yahoo.com at 10/7/2004 5:43:39 AM
I am writing a front end for an existing Access database (which i dont
really want to change if i can help it) in VB.NET.
For simplicity, i am databinding all controls on the screen using an
untyped dataset.
I have a phoneno column in the database which is setup as follows:
Required: No
... more >>
WinForm DataBinding Blues
Posted by Wayne Van Rooyen at 10/6/2004 3:36:22 PM
I know this is most probably a regular question but after searching and
searching and purchasing over 5 books, i still have not found a simple
sample. If someone could please oblidge i would really apreciate it.
If the sample could do/have the following
Form 1:
DataSet bound to NorthWind Pr... more >>
Parse, Format, Validating of Databound TextBox
Posted by Paul at 10/6/2004 10:36:13 AM
I have a textbox bound to a custom object property that accepts only
positive percentages as values. I use a regular expression in the
'Validating' event to check the entered data. The regex is written such
that the user can enter 0.25 or 25% and the result will be the same. It
does not a... more >>
DataGrid: replace foreign key values and use replacements for sort
Posted by Guido Kraus at 10/5/2004 12:43:01 PM
My DataGrid shows a table 'Orders' which has a foreign key column
'CustomerID'. Instead of displaying the CustomerID I want to display the
customer name.
I accomplished this by creating a 'CustomerNameColumn' which inherits from
'DataGridTextBoxColumn'. Basically, 'CustomerNameColumn' overr... more >>
Databinding multiple rows?
Posted by Jesper at 10/5/2004 11:10:05 AM
A typical scenario in many applications is to be able to be able to select
one or more objects in a list and then be able to edit one or more
properties of those objects at the same time.
Example: You have a list in one side of the dialog, bound to a datatable,
and you have a text box besid... more >>
Binding a table with an inserted row to a combo box
Posted by Kyle Baley at 10/5/2004 9:51:04 AM
I've reduced my problem to the following code snipped (using the Northwinds
database). It's in VB.NET with a single form containing a single combo box
and some other control that can receive focus. Place the code in the form's
Load event:
Dim connection As SqlConnection = New SqlCon... more >>
How to chage the source of a datagrid
Posted by Douglas Buchanan at 10/3/2004 8:12:29 PM
Sqls2k / vb.net winforms / ado.net / newbie
This code loads a Datagrid from a customer id supplied by a combo box.
It only works the first time I open the form. I will correctly get the
customer I select in the combo box, but it will not get any subsequent
customers I select in the combo box. ... more >>
constraint exception when changing bindingcontext position?
Posted by contact NO[at]SPAM eupher.com at 10/3/2004 10:33:58 AM
This is the first program I've tried to write in vb so I'll apologize
in advance for my terrible code. :)
I've got a form with a tab control on it. I'm working on the first
tab, binding data to controls in it. So far I load data, the
navigation buttons and search button work, and I can add ... more >>
Exception in property in Windows Forms DataBinding
Posted by Henrik Skak Pedersen at 10/2/2004 8:45:34 AM
Hi,
I have a problem with exceptions in data binding.
I have a normal windows form with 2 fields on which binds to an Custom List
which inherits from CollectionBase and imlements IBindingList and
IEditableObject.
I would like to throw an exception in one of the bound properties if the
... more >>
Using Datagrid Problem on Column align
Posted by Enver at 10/1/2004 4:00:13 PM
Hi!
I am trying to use a datagrid control on a smart device application. I
managed to see my data on it but i have to arrange the width of columns.
How can i do that?
I ve tried to use tablestyles but couldnt manage. I get System Null
Reference Exception...
... more >>
IBindingList.Find and other....
Posted by Knut Vonheim at 10/1/2004 2:36:49 PM
Hi all,
I am trying to implement a complete IBindingList for my Collection Class but
I cannot find any examples on implementation of Find or any of the other
functions typically implemented with NotSupportedException (like in the
MSDN).
Any hints, help, or pointers are greatly appreciated!
... more >>
Changing bindingcontext position based on dataview sorting.
Posted by Mike Quernemoen at 10/1/2004 9:14:45 AM
I've got a form with fields bound to a datatable. The datatable is
populated from a sql server.
I've been using a next button with
form.bindingcontext("datasource","datatable").position+=1 to bind the form
to the next record I want it bound to. That works fine.
My question is: I want to b... more >>
|