all groups > dotnet windows forms databinding > december 2004
Transferring data between controls on form2 and datagrid on form1
Posted by Mark Chimes at 12/31/2004 1:12:34 PM
Hi all,
I have an MDI app with a couple of forms.
Form 1 contains (amongst other things) a DataGrid and a button on a Pane.
When the button is clicked a second form opens. When the combobox and text
controls on this second form have been suitably filled and saved, I need the
data from these... more >>
Winforms Datagrid Control Sorting problem while drag-and-drop
Posted by Sarang Bapat at 12/29/2004 2:57:46 PM
Hi all,
I have an interesting problem here.
I have created a custom datagrid control which is inherited from the
Standard Winforms Datagrid(System.Windows.Forms.Datagrid). I have included
an additional capability of dragging and dropping the columns(ie. re-order
the columns) on the fly to t... more >>
DataGridView - save to DB on row change?
Posted by Ric Bernat at 12/28/2004 2:50:28 PM
I am using a DataGridView control in a very simple Windows Forms form.
The DataGridView is bound in the new-fangled way. That is, I used a
DataSource component and the DataGridView is databound using a typed
DataSet, DataConnector, Navigator, and TableAdapter.
Everything works great, and I c... more >>
table ColumnChanging issue
Posted by goHawkeyes at 12/28/2004 6:27:23 AM
I am having a problem getting a table's ColumnChanging event to fire
and cannot find a good reason. When my application starts a client is
selected and that client's personal info is brought down. It is placed
in a class as a shared property of type TypedDataSet. Now all forms
can access this... more >>
Dataview in another assembly
Posted by Kristian F. Thomsen at 12/22/2004 12:36:39 PM
Hi all,
What is it about DataViews in another assembly ? Should it not be possible ?
I have a DataTable and a DataView in one assembly.
I have a Datagrid on a windowsform in my main application, and it's
DataSource is bound to the DataView in my assembly.
The DataTable in the assembly is up... more >>
Locking Columns in DataGrid
Posted by dmalhotr2001 NO[at]SPAM yahoo.com at 12/22/2004 11:22:33 AM
Hi,
I have a datagrid with many columns. When I scroll to the right, I
would like the 2 left most columns (first/last name) to always be
visable when horizontally scrolling to the right.
How do I do that?
Thanks
:D
... more >>
Q: DataGrid [Attribute] ???
Posted by Bret Pehrson at 12/21/2004 12:40:49 PM
Question/issue:
I'm using a custom data source for my (WinForms) datagrid:
public class MyDataSource : IList
{
public void AddRow(string firstName, string lastName);
// ...
}
each row is a:
public class MyDataRow
{
public string FirstName
{
get { return firstName; }
... more >>
Datagrid row/column issue
Posted by Nancy at 12/20/2004 7:09:53 AM
Hi:
I have a text on the form to enter a search value. All
records found are displayed in the datagrid.
I click on a row/column of the grid and drag the mouse to
any part of the form.
I type again a new value in the text box to retrieve new
data in the grid. (Data is programmatically bi... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Efficiency of databinding vs. direct assignment. . .
Posted by UnnamedIdiot at 12/17/2004 11:48:01 AM
I am writing a form which will be used as a monitoring display on a
heavily-loaded system. Most controls are logically linked to elements
in arrays. While I can set the .text properties of those controls
directly with a programatic assignment, I've contemplated using data
binding to do so.
... more >>
Child to Parent relation
Posted by Artboy717 at 12/16/2004 5:50:19 PM
Hello!
I have two tables in SQL server 2000, clients and occupations.
I need to show to a form the client info witch contains also the occupation
info,
i created a relation named "FK_Clients_Occupations" and tried to do the
following:
Me.txtOccupationName.DataBindings.Add(Ne... more >>
Custom Data Bindable Classes
Posted by a.maggiulli at 12/16/2004 4:05:03 AM
Hi all ,
I write 4 custom class for binding in a data grid.
I write class Produts like this :
Public Class myProduts
Inherits CollectionBase
....
and I implement the IList.Add and IList.Remove interface method plus
default indexer.
this class refer to a myProduct class with 20 get... more >>
Binding to a related column
Posted by Oleg Ogurok at 12/15/2004 11:39:14 PM
Hi all,
I have a strongly typed dataset with tables:
Users: ID, First Name, LastName
Orders: ID, Quantity, UserID
UserID is related to Users' ID column via a DataRelation.
I'm binding Orders table to a DataGrid, and one of the columns I need to be
the First+Last name of the correspondin... more >>
Autoincrement value.. Why in new row? How do I get the next value?
Posted by Rollasoc at 12/15/2004 4:47:43 PM
Hi,
I have created added a Dataset to my project. In this dataset I have added
a table which has an ID column. I have set this column to autoincrement.
The dataset will be persisted using XML in a flat file.
When I try to add a new row in code, it is expecting an ID in the add row
functio... more >>
Newbie Question: Distinguishing between user click and binding context position change
Posted by at 12/13/2004 3:33:06 PM
Hello,
I have a master/detail form using a typed DataSet-a ListBox with the
"master" records and several ComboBoxes with "detail" records. On the
SelectedIndexChanged handler for the ListBox, it selects the appropriate
detail records in the ComboBoxes. This, of course, raises a
SelectedInde... more >>
bind winforms datagrid row to indexed property
Posted by Scott Walters at 12/12/2004 8:48:45 PM
Hi,
I'm trying to display a data grid that acts like a spreadsheet, so the
user can enter text data into arbitrary rows and columns. Then, when the
user clicks a button, i want to retrieve the data and process it. I've
gotten close to getting this working by binding to an ArrayList that
... more >>
I need to run a vb.net or aspx.net file every 10 seconds.
Posted by Steve Jacobs at 12/6/2004 6:53:19 PM
Hi,
I need to run a vb.net or aspx.net file every 10 seconds. The Task Scheduler
in Windows 2003 Server can only do it every 1 minute at the minimum, but I
need it every 10 seconds. Is it possible to write a small program in VB.NET
that would run in the background without using much resources,... more >>
failure of combobox to bind to DBNull
Posted by Phillip Engle at 12/2/2004 11:38:36 PM
This error occurs with respect to all of the cases where a combobox
represents an optional, nullable column that is constrained by a foreign key
and an attempt is made to save a new record and the user has made no manual
selection using the combobox.
The error has been narrowed down to the ... more >>
DateTimePicker problem with .AddNew
Posted by Mika M at 12/2/2004 4:18:32 PM
Hi!
My Windows Form contains DateTimePicker to show date-type data from
DataTable. Because application need to be able to save "no date" ie.
NULL into database table, I solved it like way...
("dtpRepaired" is DateTimePicker-control)
dtpRepaired.Checked = Not IsDBNull(dt.Rows(cm.Position... more >>
Binding a DataRow to a custom class - how set values?
Posted by Ole Storm at 12/2/2004 10:40:22 AM
I am using a DataGrid to show the contents of an underlying DataTable,
generated at runtime (not bound to a database table or anything).
Everything works well when binding the DataColumn's of my table to
simple types, but I have problems binding a column to a custom class,
MyClass (see code... more >>
Binding object with object properties
Posted by kh at 12/2/2004 8:01:04 AM
Hi. I've been reading up about preparing objects for binding to Windows Forms
controls. However, I have not seen anything about how to get a control to
show an object with it's non value-type properties expanded.
For example consider the following. I want to bind a collection of
OuterObject... more >>
When binding status changes?
Posted by Paschalis Pagonidis at 12/1/2004 6:28:40 AM
Hi all,
I bind few controls (textboxes & radio buttons) to a
datasource.
When datasource is filled for a second time by an adapter,
IsBinding value of controls' Bindings property turns to
false.
All binding properties are set on both fills
(BindingField, PropertyName, DataSource).
... more >>
|