all groups > dotnet windows forms databinding > april 2007
handle rounding at the database
Posted by jarm jarm at 4/30/2007 11:59:21 AM
..Net v1.1 (& im using BDP adonet provider)
The problem:
Im using NUMBER types on an Oracle database. In .Net/C# designer I generate dataadapters and datasets. The designer does pick up the precision and scale correctly and sets the parameters up for the commands. I am using giant WHERE clause s... more >>
Combox on Datagridview not working
Posted by steveinbeloit at 4/26/2007 3:03:28 PM
I have set up a test form that contains a DataGridView from dragging a table
(tableA) over from the DataSoure Tab. I then edited the columns and changed
one column to a combobox. It contains the key to tableB. So DatPropertyName
is still set to the key value in table A. For DataSource, I drilled ... more >>
Error Importing CVS into SQL Server 2005 using SQLBulkCopy and c#
Posted by Rob Dob at 4/25/2007 7:32:28 PM
Hi,
I'm using SQLBulkCopy via c#, I'm importing a large text file into a
destination SQL Table, the file contains multiple columns and is about 100k
records, I am getting the following error:
'Could not allocate space for object 'dbo.list0001'.PK_List001Table' in
database 'E32323... more >>
New record indication
Posted by scott at 4/24/2007 9:57:44 AM
What is the easiest way to tell if the record you are working with is
new? For example, if I click the standard Add button on a
BindingNavigator, it clears all form controls and is ready to accept
new input. Is there something similar to a IsNewRecord function?
Thanks!
Scott
... more >>
Possible to allow copy-paste of multiple datagridview rows?
Posted by Earl at 4/21/2007 12:49:30 AM
I've never done this before, so I'm wondering if it's possible and if there
is a sample. Fundamentally, is it possible to do the same thing you might do
with an Access grid -- allow the user to highlight mutliple rows with
identical structure then copy and paste them into the datagridview? I c... more >>
DataGridView - Column Datasource
Posted by Not at 4/20/2007 2:31:12 PM
Hi,
I'm using a datagridview that uses a collection of my objects as it's
data source. When the data source is first hooked up, I tap itno the
OnColumnAdded event so that I can set certain properties of the column
when it's being created. In determining what settings I would like to
cha... more >>
ComponentModel
Posted by Charles Bazi at 4/18/2007 8:13:53 PM
Hi,
I'm currently using System.ComponentModel.DisplayName and
System.ComponentModel.Description in my class' properties...
Is it possible to specifie a FormatType ? I use DataBinding in WinForms,
and I would like the controls 'auto-format'automatically without having
to set each advanced... more >>
binding to nested objects
Posted by koulbassa at 4/17/2007 11:58:05 AM
Can someone help me undestand how to do this properly?
here's the example class I want to bind to:
Public class Car
{
public string CarName;
public EngineData Engine;
public TireData Tires;
etc...
}
Public class EngineData
{
public string EngineName;
public string ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Binding navigator button states
Posted by Rick at 4/17/2007 8:26:34 AM
VS 2005
The short version:
How can I set the enabled state of a button depending on if a
strongly-typed datatable has a DeleteCommand?
***************************
The long version:
I have a windows form with a binding navigator.
There are various strongly-types datatables used ... more >>
Databind a nullable date to a masked textbox
Posted by RobinS at 4/15/2007 6:03:54 PM
Is there a way to databind a nullable date to a masked textbox?
I have a nullable date defined in a business object and have bound it to a
masked textbox, but when I clear out the date in the field, it will no
longer let me exit the field, and gives me an error that it is an invalid
forma... more >>
Which is better custom Business Objects or DataSets?
Posted by Relaxin at 4/14/2007 4:09:20 AM
I'm an ex. Borland CO++ Builder developer and I'm trying to get my head
wrapped around MS data concepts.
Borland's concepts were far more easy and had proper UI and data separation
out of the box.
You didn't have to have all of this "hard-coded" structures in order for
data-bound/business si... more >>
Databinding with own BindingContext for control does not work
Posted by Rolf Welskes at 4/11/2007 5:12:16 PM
Hello,
the problem I have is as follows:
I have a control
MyPanel : Panel .......
In the constructor I have:
pubic MyPanel()
{
InitializeComponents();
this.BindingContext = new BindingContext();
}
Now in a form drag one or more MyPanel objects in the form.
In a panel in this for... more >>
Cross-forms databinding - design time question
Posted by Dmitry Nogin at 4/11/2007 2:36:03 PM
Hi,
I'm going to show modal dialog which contains a lot of controls. My dataset
is placed on the parent form. How to databind dialog controls to parent
form's dataset at design time? Is it possible?
-- thanks
... more >>
IBindlingList and own control
Posted by JB at 4/11/2007 1:25:03 PM
I have created a class that implements IBindingList, which sucessfully
uses the sort options. This class works very well and can be bound to
a DataGridView, with column header clicking nicely automatically
sorting the data.
I have created a new control that inherits from ListView. I would
l... more >>
Is there any solution for the incredibly buggy Microsoft calendar control?
Posted by Earl at 4/11/2007 10:51:00 AM
I am exasperated with this control beyond belief. I cannot believe a company
with the resources of Microsoft could release something so bad that it is
unfixable. The cynic in me says that this was done by design -- to drive
developers to spend their days trying to fix something unfixable rathe... more >>
Databinding radiobuttons
Posted by Johnny E. Jensen at 4/6/2007 12:00:00 AM
Hey
On a form (frmUsers) with a lot of controls (textboxes only) everything
works. on my bindingnavigator i can add, delete and save.
Now i create a groupbox and places 3 radiobuttons and places this on the
form. I bind each radiobutton to respective fields within the
database.(IsMaster, I... more >>
Databinding with combobox not working
Posted by Flomo Togba Kwele at 4/5/2007 8:59:32 PM
I have defined a custom class and used it in a generic BindingList as the
datasource of a BindingSource.
I bound a combobox like on the form as:
cboFirstClass.DataBindings.Add("SelectedValue", bsClient, "FirstClass", True)
When a new custom object is created, I initialize the combobox as ... more >>
Databinding custom class to a user control
Posted by RickD at 4/3/2007 1:50:01 PM
OK, I expect this is a noob data binding question but after days searching
the msdn forums, google and my form books for an answer, I hope someone here
can explain to me what I’m doing wrong.
I have a custom class called Location, which has Latitude and Longitude
properties. These values... more >>
Databinding to update RowState
Posted by Johnny E. Jensen at 4/1/2007 12:00:00 AM
Hello
I'am trying to work with databinding.
To create the datasource I just fill a Dataset with one table (ex. Config)
the config table contains only 1 row.
The Config form containg checkboxes, and i run though the controls to set
the binding
Binding objBind = new Binding("Checked", _Dat... more >>
|