all groups > dotnet windows forms databinding > october 2004 > threads for october 1 - 7, 2004
Filter by week: 1 2 3 4 5
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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
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 >>
|