all groups > dotnet windows forms databinding > july 2005
DataBindings.Add and BindingContext view
Posted by Aurin at 7/29/2005 6:55:03 AM
See the code below. I have had some problems with setting databindings and
then not having them work. So I wrote the code below. It runs during the
constructor phase for the entire form. Is there a reason that these
databindings don’t appear in the output? What am I missing? Notice tha... more >>
AddHander Removal
Posted by Bill S. at 7/28/2005 11:55:29 AM
Hi,
Is it possible to remove an event handler once it's installed with
AddHandler?
Below is the event I added and it works fine. Later in my code I want to
remove it. I tried using this statement: (AddHandler mOwner.CmdFirst.Click,
Nothing) to remove it, but this does not work. Help!
AddHa... more >>
Data binding across two forms
Posted by Markus Frischholz at 7/27/2005 1:13:32 PM
Hello,
I use one form with a DataGrid control for navigation through a DataTable
and a second form with TextBoxes for some detail data. The second form should
reflect the current data row of the first form.
My question is: Is it possible to bind the controls to the second form to
the Cur... more >>
Problem with currencymanager and TrueDBGrid
Posted by mathieu.lapointe NO[at]SPAM gmail.com at 7/26/2005 6:54:44 AM
Hi,
I have a problem with a currencymanager bind with a datatable which is
the datasource of a Component One True DBGrid. An event update the
datatable every 30 seconds and the problem occurs when we have one
record and we pass to none, or we don't have any record and we add one
record. When ... more >>
How to determine that we are on a new row - Splitting an order
Posted by Pardo Jacques at 7/24/2005 10:18:30 PM
1) In MS ACCESS we have a mean to determine that we are on a new record. How can we test this in ado.net with vb.net
2) Suppose the following problem occurs:
A client put an order. The amount of the product that he or she orders is lager than the stock. Is it possible with vb.net that in such a... more >>
Filling treeview from database
Posted by Andreas Schubert at 7/24/2005 7:06:42 PM
Hello newsgroup,
If this should be the wrong group for my questions, I apologize.
I am a newbie to .NET and try to achive the following:
A Treeview should be filled with nodes from a database. The table has this
structure:
Node_id NodeText ParentNode
The number of nodes and... more >>
Error when casting from CurrencyManager.List to DataView
Posted by Hcan at 7/23/2005 5:45:09 PM
I have a custom collection that inherits from CollectionBase. It is bound to
a DataGrid, and now I want to disable the append row in the DataGrid. The
way I was going to do it is to set the DataView AllowNew property to False.
Something like this:
Dim myCollection as Collection
myCollectio... more >>
CSV Import
Posted by Kerr at 7/22/2005 2:30:47 AM
Hi all,
Using VB.NET i have a collection of 12 fairly large (largest file is
100MB) CSV files. I have a SQL Server data structure that mimics the
structure of these csv files. I need a method in code of getting the
data from these CSV files into my SQL Server.
Slight addition to this prob... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataGrid Header Cuttoff Problem in Windows XP
Posted by Jitender Khanna at 7/20/2005 11:16:05 PM
When the header text of DataGrid is Right aligned ,then the last few
pixels of the header text is clipped off.I tried padding the text with
a space or two but this seems to be trimmed before the text is
rendered.
This problem is detected in windows XP.But when the same code is run on
Win... more >>
Data Form Wizard source code
Posted by SpamFreeZone at 7/19/2005 8:21:03 AM
Is the source code available for the Data Form Wizard for C# in the Visual
Studio .NET 2003... more >>
Howto :: Lookup Databinding :: DataGridView Column :: Foreign key - master - details DataTables
Posted by Gordian at 7/18/2005 11:44:27 AM
[ I am using VS2005 c# ]
Hello,
I am looking for a description how to use lookup binding in accordance
with a DataGridViewColumn.
I found a nice article about "lookup binding", but i does not use a
DataGridView.
Article
=> Ari Roth's Blog => "Complex Binding and Lookup Binding"
=>... more >>
Is it possible to bind a ComboBox to a StringCollection?
Posted by Gabbe at 7/14/2005 1:56:53 AM
I have successfully bound a ComboBox to a StringCollection so that the
Strings in the collection show up in the ComboBox. Is it possible to
also bind the selected string of the ComboBox to a property in some
other object?
Sample code (MC++):
//Create the string collection
StringCollection ... more >>
DataSets
Posted by eXtreme at 7/12/2005 6:45:36 AM
When using the writexml feature of the dataset is there a way to specifiy
which tables are written to the XML file or do I have to write all tables in
the dataset to the file?
I realize I could just copy to another dataset but am concerned about memory
usage when duplicating data in memory.... more >>
App design advise
Posted by John at 7/12/2005 12:09:57 AM
Hi
I am making a simple contacts app involving clients, suppliers etc. Mostly
it involves data entered by the user being saved in the db and then user
able to search/browse the data. My question is; is it still advantageous to
bind ui elements to clients, suppliers "business" objects which ... more >>
What do I need to implement to use a DataGridTextBoxColumn MappingName?
Posted by aualias at 7/11/2005 3:56:52 PM
Hi All,
I have a Public Class PurchaseOrder which contains a POItemCollection
Public Class POItemCollection
Implements IList, IEnumerable
The PO ItemCollection contains an ArrayList of POItem which have the
following properties
InventoryID, Description and Price
I have ... more >>
DataGridView CustomBinding and DBNull
Posted by Lars Hamann at 7/11/2005 4:31:01 AM
Hello!
I have the following problem:
I have a DataGridView with is bound to a Collection that implement
ITypedList and IBindingList.
The contained objects are using primitive Types like string, datetime, etc.
When I clear the displayed value in a TextboxColumn, the original value is
insert... more >>
DataSets and Dataviews
Posted by eXtreme at 7/9/2005 10:03:56 PM
Is there way to make a dataview span two tables in the same dataset? Per
the information I have read this does not seem possible... but wanted to
confirm with this email list.
PS. I'm using .NET 1.1
... more >>
SetDataBinding raises ArgumentException
Posted by Z at 7/9/2005 1:11:01 PM
I have a window forms client that adds records to a SQL Server database and
then it displays the records in a forms datagrid. Here is the code that
performs those 2 tasks:
connection = new SqlConnection(connStr);
connection.Open();
//create a SqlCommand object and assign the connection
... more >>
How can I expose the datasource of a user-defined controll?
Posted by Point Software at 7/8/2005 2:10:49 PM
Hi,
I have a custom control which consists of a combobox(simple) and a button.
The custom control performs a lookup/search function.
How can I create a datasource that is exposed for when I place the control
on a form?
The only thing I've really been able to find is a code-snippet to expose... more >>
Control not updating when data source changed through code
Posted by Rockford Lhotka at 7/8/2005 11:09:45 AM
I have a detail form that is bound to a row in a DataTable.
I have a button on the form that goes through the bindingsource to set a
property value on the row. The data is changed in the row, but is not
reflected by the control on the form. It appears that data binding isn't
picking up the ... more >>
ErrorProvider not picking up validation changes
Posted by Rockford Lhotka at 7/7/2005 12:22:13 PM
I have a strongly-typed DataTable, with my validation code in the partial
class (behind the ColumnChanged event).
I have a single row of data bound to a detail form. That form also has an
ErrorProvider control bound to the same binding source as all the controls.
When I load the form with ... more >>
CurrencyManager.addnew
Posted by Donald at 7/4/2005 12:00:00 AM
when I use the cm.addnew method to add datarow, I know the editing can be
completed with bindingcontrol, such as textbox, if i have some columns which
I have not bind it on winform, how to edit them with coding? I cannot find
it in datatable, it looks like "unsave record". Thanks in advance.
... more >>
type of EventHandler
Posted by Hans-Peter Haberlandner at 7/1/2005 11:01:51 AM
We use customized types of EventHandlers with different EventArgs for the
"Changed" events in varoius classes that are databound. This seams to be a
problem: we get an exception in the internals of databinding saying that the
type could not be converted to the target type.
Using the system type ... more >>
|