all groups > dotnet windows forms databinding > november 2006
Controls bound to an empty datasource
Posted by Huber Peter at 11/29/2006 6:13:16 PM
hello
when I enter data into a bound control, but the datasource has no items, the
data is not saved anywhere and lost. How can I avoid someone can enter some
data into an bound control, what is not positioned to an vaild current field
in the datasource.
thnaks
... more >>
Get current position
Posted by Rock3 at 11/28/2006 7:14:02 AM
I have a comboBox bound to the particular field in datatable, I also can have
many other controls. CurrencyManager's Position property holds the current
position. I want to change it manually based on SelectedValue selected in
comboBox. How can I know the position of currently selected value?... more >>
Read Only Bindingsource on Business Object
Posted by benjamin.soulier NO[at]SPAM gmail.com at 11/28/2006 2:11:39 AM
Hello everyone,
I want to set a business object to readonly status, let me explain my
point :
I want to edit a business object, so I use a BindingSource to put this
object as a datasource.
Depending cases, I want to show on the same Usercontrol the same data,
but in read only.
Properties ... more >>
DataBinding to XML
Posted by Peter Morris [Droopy eyes software] at 11/27/2006 6:54:58 PM
If I had some XML that was structured something like this...
<data>
<selectedValue id="1235"/>
<valueOptions>
<valueOption id="1234" name="Option 1"/>
<valueOption id="1235" name="Option 2"/>
<valueOption id="1236" name="Option 3"/>
</valueOptions>
</dat... more >>
Issue with IList<T>, object inheritance, DataGridView
Posted by fquednau at 11/27/2006 6:51:19 AM
Hi there,
maybe this issue has come up before, however, I didn't find a similar
post...
I am building an example app to check out the databinding to objects,
in combination with an object db and using VS 2005.
I have a typical inheritance structure in my domain model as follows:
abstract... more >>
currently selected/active row syntax
Posted by Keith R at 11/25/2006 10:00:43 PM
I'm stuck on this in two places of my code, and after struggling and
searching, I haven't figured it out yet.
I have two linked tables; a field in my master table becomes a linked field
in my second table (e.g. customerID, second table for customer orders uses
customerID in each entry). Wha... more >>
Binding RadioButtons: Suggestions?
Posted by Jamie Risk at 11/24/2006 3:35:02 PM
Through the help of this newsgroup I've added capability
to have my forms update if the bound data source is updated
from a different thread. Fantastic!
However, not all my controls are bound to the data, particularly
the RadioButtons. As an example, I have an enumerated value that
is set ... more >>
newbie question #2: using date/time format for duration (hh-mm-ss)
Posted by Keith R at 11/24/2006 2:09:46 PM
Using VB.net express 2005
One of the fields I will need in my database is a duration (length of short
AVI video clips, ranging from 10s to maybe 10min). I figured I should use a
date/time format and just format the view to "hh - mm - ss", but in initial
tests, I'm getting the full date show... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
newbie question 1: Adding new table fields don't show up in table data view?
Posted by Keith R at 11/24/2006 2:05:02 PM
Very new to dotnet, using VB.net express 2005.
I created two tables, starting with only a few fields to get the tables
started and key fields (foreign key fields, etc.) linked. I went back to add
a few more fields, and added them just fine to the table definition view
(allowing nulls for th... more >>
Simple-binding DataGridViewComboBoxColumn to DataTable
Posted by Steffen Skov at 11/23/2006 5:01:45 PM
Hi all,
can anyone tell me whether it is possible to use simple binding between
the selected value of a DataGridViewComboBoxColumn and a DataTable column?
My specific scenario is something like this:
I have a strongly typed DataTable (MTGUIData), which contains various
columns of type... more >>
Help Me!! - insert into Access tables threw typed dataset adapter Windows Forms
Posted by tzvi at 11/22/2006 1:26:34 PM
Hi there!
I just can't find the problem and therfore solution. The issue is very
important!!!
In .net 2005 I've built a windows application with form . Inside the project
i've attached the .mdb file , wich afterwords i've connected threw server
explorer and pulled it to an .xsd file i've create... more >>
Using Transaction and mulitple line SQL statements
Posted by AnikSol at 11/20/2006 11:26:39 PM
Hi,
Env: VB 2005 Prof, SQL Server 2005
In our application we have to import data from a textfile using transaction
scope. This textfile only contains valid SQL Statements (Inserts, Updates)
generated from another application.
This works fine as long as the SQL Statements are in a single l... more >>
Im am having trouble with the Advanced SQL Generation Options
Posted by The Generate Insert, Update, and Delete at 11/20/2006 11:17:01 AM
I am having trouble with not being able to Check the Generate Insert, Update,
and Delete Sql Statements; in the Advanced SQL Generation Options Dialog Box.
If there is some configuration settings in the visual studio Web express
editions that allows me to turn it off or on then could you answer... more >>
ReportViewer databinding
Posted by AlBruAn at 11/20/2006 6:39:02 AM
Hi,
I have several business objects I'm needing to run reports against. I
haven't had any problems creating simple reports going against one or two
objects, but I have a summary report I need to generate and it's driving me
nuts. At the top level, I have an Estimate object which contains ... more >>
two datagridviews, one binding source, two queries?
Posted by Freddy at 11/19/2006 6:56:55 AM
hi,
i have a simple table, and want to display two views of it. one all the
records, one a selected subset. i have created 2 stored procedures that
return the correct rows. on my form, i have two datagridviews, each based on
the table's binding source. I want the first dgv to display all ro... more >>
Datagridview image column nulls
Posted by Earl at 11/19/2006 12:00:00 AM
I've got a datagridview bound to Sql2k database. When the image columns
return null, I get the goofy looking [X] in the column instead of a blank.
Anyone know how to make that just appear as empty instead of the default
[X]? I would also like that to appear as empty when I insert a new row
i... more >>
Validating event not firing when user selects a toolbar button
Posted by John at 11/17/2006 12:36:01 PM
When you hit a toolbar button from a databound control, its Validating event
doesn't fire. The original control retains focus. Is there a workaround for
this?... more >>
datagrid displays closed header
Posted by frank at 11/16/2006 6:20:29 PM
Having a problem with the initial display of a datagrid control in my c# app
created with vstudio 2003. The control comes up with only a header
containing an arrow and a 'plus' box, clicking the plus drops down the name
of the stored procedure the select command is bound to. Clicking the sto... more >>
Newbie which is very stuck - VB 2005
Posted by Oh-its-all-gone-wrong at 11/15/2006 1:30:48 PM
Hi There All,
I wonder if somebody could possible help me a little with my "Very Simple"
project that i just can get to work. I`ve been searching Google for about 2
weeks now but can`t find anything that seems to help me:( My Project is a
simple Address book. I have 3 Tables, with a Data-Re... more >>
how parse/inject code to interpret datagrid column
Posted by jarb at 11/14/2006 10:59:43 PM
..Net v1.1
Hello, Not sure what the best way to go about this is. I have a datagrid bound
to a datatable. One of the columns is a 2 char code. This is how it comes from
the database. In the datagrid, rather then show the code I would like to show a
description string that can come from a lo... more >>
Binding Listbox to child table
Posted by rwwagner NO[at]SPAM geodecisions.com at 11/14/2006 2:04:52 PM
Is it possible to bind a listbox to a child table so that it will only
display the child records based on the current parent record?
... more >>
Nested property keeps value on new
Posted by Wouter de Kort at 11/10/2006 6:14:02 AM
Hi all :)
I've got a strange binding problem that I can't seem to solve.
I've got the following structure: Customer.ContactData.EmailAddress
where Customer and ContactData are classes and EmailAddress is a string.
When I bind a simple textbox to ContactData.EmailAddress and I click new on ... more >>
custom TypeConverter.ConvertFrom not being called
Posted by Joanna Carter [TeamB] at 11/10/2006 12:00:00 AM
I have designed a custom type :
public abstract class Numeric
{
private decimal value;
public Numeric(decimal value)
{
this.value = value;
}
public decimal Value
{
get { return value; }
}
public virtual uint Size
{
get {... more >>
BindingSource, Filters and how to get the physical & logical rows
Posted by Flat Eric at 11/9/2006 6:27:26 AM
My problem... I have a grid in which I'd like to highlight the contents
of cells which have been altered. Sounds easy enough, you say...
I've got a DataGridVeiw which has a BindingSource as its datasource.
This BindingSource has a Filter applied. The BindingSource has a
DataTable as it's datas... more >>
How do I bind to data from a different thread?
Posted by Jamie Risk at 11/8/2006 2:54:48 PM
I have a form with controls that bind to an object declared in
the form.
I have a communications class that is receiver driven. (to get
data I have to send a command).
How can I have the receiver thread manipulate the object my form
controls are bound to?
Eg.
namespace myApp
{
... more >>
Combo box bound to Arraylist showing class name of objects in arraylist rather than Value/DisplayMembers
Posted by cms0007 NO[at]SPAM cs.unt.edu at 11/8/2006 11:00:49 AM
I am binding a combo box to an array list and the combo box is showing
the name of the class objects in the ArrayList rather than the
ValueMember and the DisplayMember. The code is below.
I use this same code for 15 other combo boxes and it works fine but for
this one combo box seems to have a ... more >>
check character or numeric
Posted by archana at 11/6/2006 10:13:50 AM
i am using textbox for entering name and other for entering pincode.
i can do the javascript validations for checking that entered values are characters or numeric only.
but it will be perfomed as soon as i presses any button.
but i want to performe the validation in such amanner that it mu... more >>
Validations in DataGridView_CellLeave()
Posted by archana at 11/6/2006 10:04:14 AM
i am using dataGridView in my project,this datagridview is unbound means it is not populated with the data from the table on load function,
i am self entering the data in different cells of the datagridview.
Entering data is not the problem,like i am writing the numeric value in 'qunatity' cel... more >>
DataGridView paste to (edit row), * row
Posted by benderm NO[at]SPAM gmail.com at 11/6/2006 1:43:07 AM
I have a a DGV with data populated from a data source DataTable. The
DGV also has the edit row at the bottom of the data. What I want to do
is make sure that if the user pastes data into the edit row, that the
edit row is no longer the edit row, I want the data pasted to that row
committed to ... more >>
Help need with DataGridView
Posted by Saravanan at 11/5/2006 7:18:01 PM
Hi,
I am using DataGridView for displaying data
I want to some idea about the following
1. How to split and merge cells in DataGridView
2. How to place column header in the bottom of the cell because by default
it is coming as top of the cell, how to change the behaviour of the
datagridvie... more >>
Custom rows in bound DataGridView
Posted by Rickard at 11/2/2006 5:34:37 PM
I am trying to create a custom DataGridView control that displays data
from a DataSet, but with the additional functionality that it shows
"headlines" in the data. Example (pardon my lack of ASCII art skills):
---------------------------------
| Name | Age | Oranges |
---------------... more >>
Start editing event in bindingsource ?
Posted by Merlin at 11/1/2006 6:46:23 PM
Hi,
I can't find a way to catch something like a "start edit" event on a
bindingsource. This class has a EndEdit() method, that means it "knows"
that editing has been started... But how to be aware of this ?
bindingsource events doesn't seem to make the job.
Any idea ?
thanks.
--
/... more >>
Unexpected ListBox.SelectedIndexChanged event firing
Posted by Ryan at 11/1/2006 1:33:02 PM
Hi.
I'm experiencing some strangeness with the SelectedIndexChanged event firing
on one of my listboxes. Here's the scenario:
I have a listbox that is bound to a bindingsource, which in turn is bound to
a dataset's datatable. I also have a checkbox that is unbound. In the
Checkbox_Che... more >>
|