all groups > dotnet windows forms databinding > february 2007
The infamous datetimepickers again
Posted by Earl at 2/28/2007 11:17:35 AM
I'd rather rant about these godforsaken dtpickers, but it would do no good
....
Have a bindingsource set up using a typed dataset as datasource and the
applicable datatable as member. Bind the bindingsource to a datagridview and
then the same bindingsource to a handful of controls including... more >>
after VS2005 uninstall, VB6 bound controls not displaying
Posted by lb at 2/27/2007 2:52:19 PM
A VB6 app that was developed years ago and was working fine this
morning, no longer works since uninstall of both Visual Studio 2005 and
Visual Studio 2003. Form controls that are data bound do not display
values. Values that are entered into data bound controls do not get
written to the Acc... more >>
Strange concurrency error
Posted by John at 2/25/2007 8:44:38 PM
Hi
I have a perfectly working vs 2003 winform data app. All the data access
code has been generated using the data adapter wizard and then pasted into
the app.
I had to add a new field in the backend access db which I did. I then
dragged the table to the dataset and deleted the old table... more >>
Binding to nullable control properties
Posted by despot at 2/23/2007 4:15:00 PM
Hi,
We are trying to extend the DateTimePicker control by shadowing the Value
property so it uses DateTime? (nullable) data type, to support null values.
It works fine when the value is set from code, but we have problems with data
binding:
myDateTimePicker1.DataBindings.Add("Value", _ta... more >>
Stored Proc call -- timeout, how to change default
Posted by Freddy at 2/23/2007 6:47:50 AM
Hi,
Calling a stored proc from C#, and it times out because it takes longer to
execute than whatever is the default.
How can i change the default? i've changed the Connection Timeout, but that
didn't do it--it's not the connection that's timing out.
in SSMS, there is an execution timeou... more >>
Error: BindingSource cannot be its own data source
Posted by Beemer Biker at 2/22/2007 11:08:21 AM
I have a program that runs for 3-4 hours, cycleing thru a datagridview,
reading various database settings and then useing them in a calculation to
perform various tasks.
Occasionally I get the following error message:
=========start of error message=======
System.InvalidOperationException... more >>
Multi User Environment Winforms
Posted by AnikSol at 2/21/2007 10:02:00 PM
Development Environment: VB 2005 Prof, SQL Server 2005
In a typical Multi User environment, what is the best way to handle updates
of disconnected datasets of other users.
Eg: User A opens application Winform 1, dataset1 is loaded on his machine
User B opens application Winform 1, dataset1 ... more >>
Data-bound DataGridView, overloaded ProcessCmdKey & CancelEdit problem
Posted by Pavel Maly at 2/21/2007 9:05:17 PM
Hello, I need some help with a DataGridView control and ProcessCmdKey method of the form. The
DGV is data-bound to an Access database table with a few NOT NULL columns. The ProcessCmdKey
method of the form is overloaded. I tried to use
return base.ProcessCmdKey(ref msg, keyData);
in the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Dataset and scalability issue
Posted by Nick nkw at 2/21/2007 10:50:04 AM
I am creating a winforms application. Drag and drop and VS 2005
automatically created Dataset based on the MDB schema. I found it seems
that all the changes are cached in the memory. Will the default way has
any scalability issue if the database tables are huge? What's the
solution if it doe... more >>
datagrid update upon dataset deserialize from xml
Posted by R&D at 2/20/2007 2:20:01 PM
Hello,
I have bound datagrid to dataset tables. when I save the dataset as a
serialized xml file and deserialize it after app restart, the grids are
empty.
That's how I serialize:
Forms::SaveFileDialog * sfd = __gc new Forms::SaveFileDialog ;
Forms::DialogResult dr = sfd->ShowDialog() ;
i... more >>
strange behaviour with a checkbox and databinding (easy to replicate)
Posted by Kevin at 2/20/2007 10:03:22 AM
Right I have a very strange problem in vb .NET 2.0 with a checkbox and
databinding which is very easy to replicate:
Create a windows application project.
on Form1 add a checkbox and a button.
Add the following code to the form:
Private boolChecked As Boolean
Private Sub Form1_Load(... more >>
Property Grid Binding
Posted by moflaherty at 2/19/2007 12:12:10 PM
Is there a way to dynamically bind to a Property Grid? I have metadata in a
database; I would like to write a stored procedure that returns the dynamic
list of properties. But I want to add attributes, etc. Since I don't know
what properties and property types may come out of the results, I am... more >>
Disable a text box when it's not adding new row?
Posted by Nick nkw at 2/16/2007 5:10:57 PM
I want to enable a text box only when it's in "add new" status. The
BindingSource.Position just return a number. Any good way to do it?
Thanks,... more >>
How to save an entity based binding source using a tableAdapter.Update
Posted by alee at 2/16/2007 12:24:11 PM
I created an object using BindingList<T> for GetObjects() and assigned that
to a objectBindingSource in a WinForm application. The ObjectBindingSource
then
assigned to a DataGridView. There was a objectBindingNavigation also on the
form. Everything worked as expected when I run the applicati... more >>
Databinding to a Property of a Collection
Posted by AndrewDucker at 2/16/2007 7:42:52 AM
I have a class which is both an IEnumerable _and_ has various
properties to itself. I want to bind a textbox to one of those
properties, but can't seem to find a way to do so.
To give a simple example:
class NameList : Hashtable
{
private string overallName = "Andy";
public string ... more >>
Problem with Parameter
Posted by SF at 2/16/2007 12:00:00 AM
Hi,
I am new to ASP.NET. I started my first testing ASP.NET by having a ASP page
consist of a drop-down control and 1 datagrid bound to Access database. The
dropdown control works very well except the datgrid becuase I want to limit
the datgrid to display only information selected in the dr... more >>
Possible help for Newbie
Posted by Not Bright at 2/13/2007 3:37:25 PM
Hi All,
Hope everyone is well and wouldn`t mind helping a very frustrated newbie
out? Im fairly new to VB 2005. I have made a fair very simple Database
Projects which have all worked. Im now writing a very simple project which
has a Table, and 3 Combo Box`s which are set as Lookups to other... more >>
Can I Filter a datagrid bound to a List<>
Posted by koulbassa at 2/11/2007 10:54:00 PM
I have a list of custom objects that I am displaying by means of a datagrid.
Is it possible to filter what rows I bring into the datagrid? I can't use a
dataview (as far as I can tell) because I'm not pulling from a datatable.
I'm using a tablestyle to format my columns...
Is there a w... more >>
binding a arraylist of custom objects to any control .net 1.1
Posted by R&D at 2/10/2007 7:18:28 PM
[concerns .NET 1.1]
hello,
I am searching for a control (listview / datagrid / treeview?) to
display a few lists of custom objects (frames, connections) - each list
should contain several properties in one row concerning items and
subitems (frame name and characteristics, e.g. number of field... more >>
Displaying a status image in a datagridview
Posted by Simon Harvey at 2/10/2007 2:55:05 PM
Hi all,
Can someone show me, or direct me to some code which deals with the
following (pretty standard) requirement:
I have a database column with an integer indicating status e.g 1 =
Available, 2 = Out of Stock and so forth.
In the datagrid, I would like to be able to display an approp... more >>
Password encryption and binding
Posted by Earl at 2/10/2007 2:03:15 AM
I'm adding password encryption to the Employees form. I have a
strongly-typed dataset being used as the datasource for the
EmployeesBindingSource, and the Employees table set as the datamember. All
controls on the form are bound to the EmployeesBindingSource. Except for the
password ...
I... more >>
Last edited control not taking changes (no lose focus)
Posted by Jose Fernandez at 2/7/2007 2:06:47 PM
Hello.
We have a Form with multiple controls (textboxes, Comboboxes, etc). I have
these controls binding to an user Binding Data Source.
PROBLEM.
The last control edited is not getting updated UNLESS we click somewhere
else (that forces the control to lose focus).
If we click on the sa... more >>
DataSet.Clear
Posted by jaro at 2/7/2007 1:01:15 PM
Hi
I've simple scenario. I've win form with text edit bound to my dataset
object. this dataset has one table with one column (datasource for my edit).
Everything works fine, but when I clear my Dataset anf fille it again (from
web service) my text edit lose binding (doesn't display valid value... more >>
Datagrid binding and XML file
Posted by Ces at 2/7/2007 12:19:12 AM
Hi All,
Recently I needed to use a pure XML data file to create a simpe user
interface: A master detail form with a datagrid, the datagrid contains
a DataGridViewComboBoxColumn.
The form contains also a BindingNavigator. Simple.
I managed to do the "complex binding" between the BindingNavig... more >>
DataBinding to Relation throws exception - VS2500 / Ado.net 2.0
Posted by Rolf Welskes at 2/5/2007 5:36:01 PM
Hello,
I have two tables in sqlServer
Table01, Table02.
ID in Table01 is primary key.
In Table02 I have a field ForeignId
I have a relation from Table01 to Table02 with Table01.ID to
Table02.ForeignId.
So I have a 1 to infinit releation from Table01 to Table02.
This relation be named Fk_T... more >>
|