all groups > dotnet windows forms databinding > march 2007
Lookup combobox
Posted by Rick at 3/30/2007 6:47:09 AM
VS.2005
I have several lookup combo boxes in my windows project and would like to do
a "lighter weight" binding. Currently I am using a strongly typed dataset
with a binding source as the DisplayMember and ValueMember. This seems like
overkill since I don't use much of the datatable funct... more >>
How do I use DataTable.ImportRow with a DataView
Posted by Rob Dob at 3/29/2007 9:17:58 AM
Hi,
I'm trying to archive orginal records, so what I am trying to do is upon
saving the changed record also writing the orginal record version to a
different table. The problem I'm having is that the DataTable.ImportRow
does not accept a datarowview as a parameter. My code is below, can s... more >>
BindingSource determine changes before calling EndEdit()
Posted by Rob Dob at 3/28/2007 10:53:28 PM
How do I determine if there are any rows within the BindingSource that have
changed prior to calling the EndEdit(). I need to do this in order to
archive some records and if I call the EndEdit() then it also wipes out the
orginal version of the dataset record with the proposed changes., Howe... more >>
Problem Databinding To class returned from web service
Posted by hotsdogs at 3/28/2007 6:53:01 AM
I have a web service that queries a db and loads an array of class
objects with data from the dataset.
The class looks like the following:
public class MyData{
public string Data1{get{return mdata1;}}
public string Data2{get{return mdata2;}}
private string mdata1;
private string mdata2;
... more >>
Summarizing Data
Posted by Coach81 at 3/28/2007 2:27:30 AM
I have a large table of customer data. It is a host of sales data.
Actually all of the invoices to all customers. I'm only interested in
total sales to each customer. I'd like to query the dataset and come
away with total dollars by customer. I read several articles on scalar
queries and... more >>
Print datagridview How to...
Posted by Scotty at 3/26/2007 12:00:00 AM
Hi,
Hope someone can help me
I have a datagridview I want to print
Code below works fine if I print the data if there is only 1 page (without
using hasmore pages
'!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
If intRowPos <= 10 Then
e.HasMorePages = False
Else
e.HasMorePages = True
End If
'!!!... more >>
Cant find DataConnector!
Posted by joseph_gallagher NO[at]SPAM hotmail.com at 3/24/2007 9:21:34 AM
Hi,
I'm just running through some examples of data binding in c# and am
seeing a lot of references to the DataConnector object, however I
can't find the object in my code, it should be in System.Windows.Forms
but its not, am I missing a reference. The details of my visual studio
are:
Micr... more >>
Datagridview and relation
Posted by Earl at 3/22/2007 7:15:42 PM
I can write a bunch of code to use a datagridview with two related tables,
but I'm hoping to be able to use the bindingsources to do it instead. I'm
not getting any exceptions, but the datagridview is only displaying the
child columns instead of both the parent and child. What I'm doing is
s... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Column 'xxx' does not belong to table yyy
Posted by Goldii at 3/20/2007 6:05:04 AM
Hi all
First things first, I do not use multithreading to update any control, all re-marshalled onto the UI-thread. I do not rebind the control, I add/remove rows in the underlying tables, all on the UI-thread. The SqlConnection is not shared and it is contained in a "using" block (so hopefully i... more >>
Build a multi-coloured Data bound Grid.
Posted by iKiLL at 3/19/2007 11:28:25 AM
Hi all
I am currently using a Bound Read Only data grid.
What I am looking to do is have different colour rows depending on the data
in the row.
EG. If the status = Closed then that row should be Red, If the Status = Open
then That row should be Green.
I am trying not to loop through... more >>
Can't navigate away from control
Posted by AlBruAn at 3/19/2007 10:57:26 AM
I have a form I think databinding is causing some problems with, but I'm not
sure. To simplify things, let's say I have two text boxes (called
categoryCodeMaskedTextBox and categoryDescTextBox) databound to
bindingSourceCategories and five buttons (cmdNewCategory, cmdCancelCategory,
cmdDel... more >>
Cancel databinding add rows in datatable
Posted by Roger at 3/14/2007 5:59:08 AM
Hi,
My exact question is:
¿ How can I CANCEL the addition of a new datatable row that comes from an
bindingsource's event ?
I have a datagridview attathed to a bindingsource.
The bindingsource is attached to a dataset with a datatable.
On the datatable I have a primary key defined... more >>
Binding custom objects
Posted by Alla at 3/14/2007 12:00:00 AM
Hi,
I got a problem with binding custom objects to the controls. Let's say we
have 2 objects: obj1 and obj2. In my case DataGrid column is bound to the
obj1 and ComboBox in that column is bound to the collection of obj2 and has
its ValueMember as Guid and DisplayMember as string from the ob... more >>
Restricting changes with AllowEdit = false
Posted by Stephan Zaubzer at 3/11/2007 8:17:55 PM
Hi!
What is the best way to restrict changes of a datatable, which is not
bound to a DataGridView but rather to separate Controls (Textboxes,
Datetimepicker...) through a binding source. If I want to restrict
updates, I want to do this centrally on the DataView the BindingSource
is bound to... more >>
databinding to my class, how do I display 'nice' field names?
Posted by Kevin at 3/7/2007 2:41:31 PM
Hi
I have a custom class that I am binding to a usercontrol using the
built in databindings in Visual studio 2005. I add a my class as a
datasource to my project and then drag and drop the class onto my
form. This creates a load of textboxes etc on the form as you would
expect.
My problem ... more >>
Error trying to delete columns from datagridview
Posted by Roger at 3/6/2007 9:51:46 AM
Hello,
I'm trying to remove columns from my datagridview, but an error appears:
sub reload()
..
..
DataGridView1.Columns.RemoveAt(1) 'or
DataGridView1.Columns.Remove("column_name")
..
..
end sub
Errors:
"La operación no se puede realizar en este controlador de eventos."
(So... more >>
Looking for a better combo
Posted by Earl at 3/2/2007 8:31:42 PM
Is there a better combo on the market than that piece of crap with the
DropDownList bug? I cannot believe this was not fixed between VS2003 and
VS2005.
... more >>
ADODB.Recordset Binding
Posted by c4p at 3/2/2007 4:48:42 AM
Hello.
How can I bind ADODB.Recordset to DataGrid? I really need to bind it
to many third party controls.
I there some adapter class that implements all necesarry interfaces to
bind it?
Or I must implement these interfaces on my own?
Thanks in advance.
... more >>
DisplayNested Structure Array in DataGridView
Posted by Mark Jerde at 3/1/2007 3:07:03 PM
VS 2005 SP1. Googled without success.
I have an array of structs, and some of the elements are arrays of structs.
E.g.,
-------------------------------------
public struct foobar {
public int ID;
public string Name;
public foo[] FooFields;
public bar[] BarFields;
}
public ... more >>
|