all groups > dotnet windows forms databinding > november 2004
Filter by week: 1 2 3 4 5
Binding textboxs to dataRow with null fields
Posted by ClydeL at 11/30/2004 9:45:02 PM
I have a number of text boxes bound to fields in a datarow selected from a
dataset. Everything works until one of the fields is null.
Binding a bit field to a checkbox doesn't have this problem.
Is this supposed to work with null fields?... more >>
Display array data in DataGrid control
Posted by Turtle MacDermott at 11/27/2004 7:22:23 PM
Hope this is the right newsgroup -
if not, please redirect me.
I have an array which is created dynamically in the course of my program
execution.
Once it exists, I'd like to display its contents in a datagrid.
So far, I have succeeded in:
Creating a dataset
Creating a table i... more >>
DataGrid currentRowIndex and table's rows, in sync while sorting?
Posted by .NET newbie at 11/23/2004 11:00:13 AM
Hi,
I'm quite new to .NET so sorry if this is silly question.
(.NET 1.1)
I have a dataset with a table (e.g. myTable) filled with records.
I have a datagrid on a form showing some colums of this
table. I also have a button on the form called editButton.
When the user selects a row and cl... more >>
Display rows in datagrid in textboxes -- nulls kill it
Posted by Beverley at 11/23/2004 10:50:00 AM
I'm trying to do pretty much exactly what is described here:
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q992q
I have a datagrid which is bound to some data (surprise). Then I have some textboxes,
which I want to display the current data shown in the datagrid. The guts of the code tha... more >>
Big Red X on DataGrid
Posted by Becker at 11/22/2004 10:20:49 PM
I have a strange problem that happens intermittently and I cannot replicate
it on demand. I have a datagrid that has a datasource of a datatable.
I update this datatable via threads. I use the readerwriterlock to ensure
that multiple threads do not manipulate data in the table without havin... more >>
DropDown list, bound to a datatable with a null value throws an ArgumentOutOfRangeException
Posted by John Murray at 11/21/2004 11:14:44 AM
In windows forms, I have a combobox (dropdownlist) with selections
populated from a datatable (using ValueMember = key, DisplayMember =
description and DataSource.) The datatable comes from a SQL Query and I
am manually putting a value in position 0 of the returned datatable with
DBNull for... more >>
binding checkbox
Posted by Pete Hearn at 11/20/2004 3:02:06 PM
Greetings All
Can anyone tell me how to bind a checkbox to a database field? Most
Booleans are stored in fields of type Char(1) in SqlServer. "1" is True,
"0" is False.
It seems to me I need a way of specifying the Boolean expression as the
binding value, but the IDE merely allows me to s... more >>
Question about embedding (Reference & Resource)
Posted by MikeY at 11/18/2004 9:44:17 AM
Hopefully databinding is the right forum. Here goes.
Being a newbie with Reference/Resource is there a way of embedding the
..resource file within a folder of my application instead of having it in the
main project /executing assembly area. i.e. if I have a folder pertaining to
variables, I wo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Different Table Styles for a single table
Posted by Gis at 11/17/2004 7:35:07 AM
Hello,
Is possible to set different table styles to one single table?? I need to
display certain columns depending on the user input, but all the columns are
in the same table. the dataset is loaded from a stored procedure. I'm ask to
create this table styles without changing the actual stru... more >>
Open first level in parent-child datagrid
Posted by Brian Bischof at 11/16/2004 4:57:40 PM
I have a parent-child datagrid working fine with three datasets connected.
My question is how to make it open to the first level automatically. Right
now when the form opens it just shows a blank datagrid with a plus sign. I
click the plus sign and then it shows me all three levels to choose from... more >>
Directing Console.Out and Console.Error to a Textbox
Posted by Nevyn Twyll at 11/16/2004 10:59:35 AM
I have a set of libraries that do processing output to Console.Out, and
Console.Error.
How do I direct that output to a Textbox on a Windows form in CSharp?
Thanks in advance!
- Nevyn
... more >>
Update command
Posted by Gis at 11/15/2004 7:05:02 AM
Hello,
I'm trying to update my database using the Update command.
By debugging I realized that the parameters are not being passed to the
stored procedure. All parameter values show with value = undefined, except
for EmployeeID, dtpDate and AreaReferenceID which are 2 combos and one date
t... more >>
Datagrid does not reflect changes to bound dataset
Posted by Peter Kenyon at 11/12/2004 12:18:28 PM
Hi,
I am using a datagrid to display a few columns from a dataset and a "detail"
form for editing, which appears after double-clicking a row in the grid.
After the user finishes editing an item with the detail form, the changes he
has made do not show up in the datagrid even though both are... more >>
Parameter on Stored Procedure
Posted by Gis at 11/12/2004 3:56:01 AM
Hi,
I'm using a data adapter daReadAdmin which is delcared like this:
SqlDataAdapter daReadAdmin = new SqlDataAdapter("p_ReadAdmin",
strConnection);
Where p_ReadAdmin is a parametrized Stored procedure in SQL Server then the
following code states:
daReadAdmin.SelectCommand.CommandTex... more >>
Designer/properties databinding, how???
Posted by Julie at 11/11/2004 1:10:35 PM
I'm trying to use data bindings through the control designer properties, and
getting
nowhere at light-speed. The online help for data bindings is virtually useless
as a tutorial on the subject, and I haven't been able to locate anything
through Google.
I've set up data bindings manually, and... more >>
How to update an IBindingList in a separate thread?
Posted by juliensellgren NO[at]SPAM hotmail.com at 11/9/2004 3:49:24 PM
I have a DataGrid bound to a custom collection that implements
IBindingList. It is well known that updates to windows forms widgets
must be done on the same thread as the form. Here is the kicker: I
would like to have a process in a separate thread that makes updates
to the collection. Ideally w... more >>
DataRowView binding
Posted by Mauricio Magni at 11/8/2004 11:41:29 AM
Hello
I have a form that shows the values of a DataRowView. I bind the controls to
columns of this DataRowView.
Almost everything works right, but, there is something that doesn't work as
I expected:
One of the controls is a ComboBox that lookups data in another table. If I
change the value ... more >>
With Relationships and filter
Posted by Gis at 11/8/2004 4:54:03 AM
Hello, I'm trying to bind table Employee already on a dataset DsName. But
Employee references to other tables PersonnelGroup and PersonnelStatus. I
want cbobox cboName only to show Employees whose Status = 'Current' and Group
= 'ATBDE'
Here's part of the code:
Dim employeePersonnelGroupRe... more >>
Binding problems when RowFilter returns zero records
Posted by anthonyp NO[at]SPAM dslextreme.com at 11/6/2004 6:30:28 PM
The following thread from May, 2003, describes the problem I am
seeing:
http://groups.google.com/groups?hl=en&lr=&threadm=2d9301c323fb%24fdc22b30%24a301280a%40phx.gbl&rnum=4&prev=/groups%3Fq%3Drowfilter%2Bno%2Brows%26hl%3Den%26lr%3D%26group%3Dmicrosoft.public.dotnet.framework.windowsforms.databi... more >>
Databinding Wishlist
Posted by David Kelly at 11/5/2004 9:45:52 AM
Rather than complaining to myself about this I thought I should put it out
there and see if others agree with me (or can point out ways it can already
be done).
Two things I would love to see data binding support are:
COMPILER CHECKED BINDING
To be able to bind a properties in a... more >>
Datagrid Combobox column datasource problem
Posted by Srikanth at 11/4/2004 3:51:20 PM
Hi,
I am trying to set the datasource for a Combobox column of a Datagrid to
a relationship of a Datatable:
this.GoodsColumn.ColumnComboBox.DataSource =
voyageDataset1.tblConsignment.DefaultView;
this.GoodsColumn.ColumnComboBox.DisplayMember =
"tblConsignmenttblGoods.strGoodsDesc1";
thi... more >>
Sorting of DataTable
Posted by Sebastiaan Olijerhoek at 11/4/2004 2:39:41 PM
When sorting a DataTable with DataTable.DefaultView.Sort then the table
seems to be sorted when looking at with a DataGrid, however when using the
table in the code through DataTable.Rows[] the rows are not sorted.
Is there a way to access the DataTable in the code with its rows sorted?
Kind r... more >>
DateTimePicker Checked-property question
Posted by Mika M at 11/4/2004 2:30:23 PM
Hi!
I have bound DateTimePicker to the DataSet DataTable's field like...
dtpMyDateTime.DataBindings.Add(New Binding("Text", dt, "MyDateTimeField"))
....and ShowCheckBox-property = True
Saving date into database table using DateTimePicker is working fine, but I
assumed when Checked-box ... more >>
Dataset designer problems
Posted by Donald Stump at 11/4/2004 12:03:21 PM
I have been using VB.NET for 2 years and have completed many
applications.
Recently I have experienced problems using the dataset designer and at
this
point I cannot use it at all. It began when I added a column to a table
in
the dataset designer and when I returned to the windows desig... more >>
Winforms FAQ Datagrid Combo?
Posted by James Goodman at 11/3/2004 5:44:43 PM
I have used this example to embed a bound combo within a datagrid.
It works very well, but with one exception.
If the user selects a value from the list, the selected value is not
actually shown until the control loses the focus. It always displays the
previous, or first entry in the list.... more >>
Databinding array as property to datagrid
Posted by Erez - Bgumail at 11/3/2004 11:21:46 AM
Hi all,
i have a class(lets say class "a" ) that one of its members is array (not
array list) of class "b" (the other members are simple like int,string
ect..).
when i binding class a to datagrid all the simple members are ok, but the
array member is not bound.
If i change it to ArrayList it i... more >>
Binding to a property in a User Control
Posted by Brett Zimmerman at 11/3/2004 4:34:02 AM
Hi All,
I have a custom control derived from TextBox (could be any control
though) with a property that I want to bind a database row to. E.g.
public class TestTextBox : System.Windows.Forms.TextBox
{
private object m_NullableValue = DBNull.Value;
public TestTextBo... more >>
Datagrid individual cell colors
Posted by Alejandro González Anselmi at 11/2/2004 6:42:33 PM
Hi!
I have a datagrid in a windows form
I want to show some customized format, like background color, etc for some
cells depending on the value of the cell or other cells of the row, etc
I have derived from the DataGridTextBoxColumn object
I have override all 3 paint methods and it works fine
... more >>
When does setting the Position of a BindingManager not work?
Posted by George at 11/2/2004 5:22:45 PM
I have a situation in which some in a DataSet that is bound to a (non-MS)
grid and into individual controls. The grid is readonly and used for
navigation only. When a row in the grid is selected I set the Position
property of the form's BindingManagerBase (from Me.BindingContext) to the
correct ... more >>
Textbox and DataRow Status Problem
Posted by DaStuffedProgramma at 11/2/2004 12:30:04 PM
Hi DotNetterians !
I have come across a behavior of the databinding functionality that I cannot
understand.
I have a simple Windows Form with a textbox an a programmatically created
DataSet in the background that contains only one Datarow with some test
Fields f1,f2 of type string. The te... more >>
Notify binding on changed data (ICustomTypeDescriptor and PropertyDescriptor)
Posted by Piotrek at 11/1/2004 11:40:57 AM
Good morning, happy haloween
Explainations:
I have a collection (that implements arraylist) of custom objects (lets call
them A)
Each A object has an indexed property, lets say A.PROPX(0) et A.PROPX(1)
Each A object implents System.ComponentModel.ICustomTypeDescriptor to
provide custom... more >>
Databinding two controls together - works?
Posted by BBM at 11/1/2004 7:58:04 AM
Why doesn't this work? Very simple code...
nvl.BindableList is an ArrayList of "NameValue" objects
Name and Value are object properties of the NameValue objects
cbxDesType is a combo-box
tbxDesTypeCode is a textbox
private void frmDesTypeTest_Load(object sender, System.EventArgs e)
{
... more >>
|