I create a dataset via visual studio wizard and then I drag some columns to a form in details mode. So in my form I have some coontrols binding to bindingsource.
If a run the project, all controls are syncronized with the data. It means the bindingsource pass the data to the controls.
qUESTION
How can I pass value from bindingsource (current record and column "xxx") to a variable?
I thinks...
User Profile
Collapse
-
pass value from binding source to variable
-
I found immediate window and i worte:
Console.WriteLi ne("Hi");
the result was:
Expression has been evaluated and has no value
The idea is not to write to immediate window.
in ms access some times i want to see for example a result from a loop and then write a line something debug.print variabletosee
Example.
for (int i = 0; i < 20; i++)
... -
print to immediate window
In ms access i can print the results to immediate window as follow:
debug.print "testing"
if i go to imediate window i see in the screen: testing
how can i print to imediate window in c#?
Thanks,
regards,
jose -
method to update database based in stored procedure as ms access project
The wizard to create dataset, automatically creates a method to update table if the dataset is based on table.
If i create a dataset based on sotored procedure where this is based on more one table, it doesn´t create the update method.
Any bodyelse, knows any wizard or addin where i can create update method based on stored procedure?
Im ms access project if I bound a form to stored procedure, in the properties... -
Save data based on dataset with computed columns
1. I created a dataset based on the table with computed columns with a wizard.
2. A create a form bound to dataset.
3. When I try to save, it shows a message:
The column LoadDate cannot modify because it is either a computed column or is the result of UNION operator.
It is right, the column LoadDate is computed column and it can not modified.
Question.
How can I save the regulars columns... -
-
the goal of this method is to pass the name of the user control and add it to the panel (in this case, add t splct container panel2).
Method:
private void addUserControls (UserControl uc)
{
splitContainer1 .Panel2.Control s.Clear();
uc = new UserControl();
splitContainer1 .Panel2.Control s.Add(uc);
uc.Dock = DockStyle.Fill;
}...Leave a comment:
-
The goal of this method is to pass the name of the uer control and add it to the panel.
On the buton I run the following code:
private void btnShip_Click(o bject sender, EventArgs e)
{
addUserControls (frmCargo);
}
When I run the method, it doesn't work I mean there is error.
The error is the following
'DB_Lift_CS.frm Cargo' is a 'type' but is used...Leave a comment:
-
create a method to add any user control to panel
I have a form with a split container. On the left panel there are buttons where I click to show the user control on the right panel.
I would like to create a method to assign in each button to add the user control to left panel. I tried the following code but it doesn't work.
Could you help me?
private void addUserControls (UserControl uc)
{
splitContainer1 .Panel2.Control s.Clear();...
No activity results to display
Show More
Leave a comment: