In WindowsForm in C# in Visual Studio 2003,
When I create a datagrid, and give it a name such as dgPart,
When I try to bind to it using DataBind(), such as is mentioned in the
online help called Walkthrough: Creating Read-Only Data Access in a Web Forms
Page,
DataBind() isn't an option.
My guess is that maybe it's not needed for a WindowsForm, but if so, I'd
like to know how I would convert articles such as this so they work in
WindowsForm, not just in ASP.NET. I would appreciate it if you could please
explain further what is happening and why. I don't see anything in Help or
Knowledgebase to explain why DataBind() isn't an option for my datagrid.
Also, I haven't received an answer I can use to Subject: updating datagrid
after returning 10/11/2004 5:53 PM PST... would you mind taking a look at
this previous post to see if you can help me? 3 2827
Hi,
The binding mechanism is different in win forms from web forms, take a look
at this link: http://msdn.microsoft.com/library/de...adodataset.asp
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Pam Ammond" <pa*@empoweringyou.com> wrote in message
news:7A**********************************@microsof t.com... In WindowsForm in C# in Visual Studio 2003, When I create a datagrid, and give it a name such as dgPart, When I try to bind to it using DataBind(), such as is mentioned in the online help called Walkthrough: Creating Read-Only Data Access in a Web
Forms Page, DataBind() isn't an option. My guess is that maybe it's not needed for a WindowsForm, but if so, I'd like to know how I would convert articles such as this so they work in WindowsForm, not just in ASP.NET. I would appreciate it if you could
please explain further what is happening and why. I don't see anything in Help
or Knowledgebase to explain why DataBind() isn't an option for my datagrid.
Also, I haven't received an answer I can use to Subject: updating datagrid after returning 10/11/2004 5:53 PM PST... would you mind taking a look
at this previous post to see if you can help me?
Hi Pam,
I would also suggest you to go thru this http://msdn.microsoft.com/library/de...ndowsforms.asp
Regards,
Rakesh Rajan
"Pam Ammond" wrote: In WindowsForm in C# in Visual Studio 2003, When I create a datagrid, and give it a name such as dgPart, When I try to bind to it using DataBind(), such as is mentioned in the online help called Walkthrough: Creating Read-Only Data Access in a Web Forms Page, DataBind() isn't an option. My guess is that maybe it's not needed for a WindowsForm, but if so, I'd like to know how I would convert articles such as this so they work in WindowsForm, not just in ASP.NET. I would appreciate it if you could please explain further what is happening and why. I don't see anything in Help or Knowledgebase to explain why DataBind() isn't an option for my datagrid.
Also, I haven't received an answer I can use to Subject: updating datagrid after returning 10/11/2004 5:53 PM PST... would you mind taking a look at this previous post to see if you can help me?
Thank you Ignacio and Rakesh. Your answers helped me to understand
databinding much better :-)
Pam This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: autofill |
last post by:
2 scenario inside a WebUserControl. I want to know why Microsoft and so many
book doesn't suggest us to work like that. This control going to be in my
page and I will call the DataBind of my...
|
by: Stephen |
last post by:
Hey everyone. I was wondering if someone could help me with a small problem.
I have designed a user control and I would have inserted it on a aspz page
(WebForm1). The User control is being used to...
|
by: Marty McDonald |
last post by:
I have <asp:Table... </asp:Table> on my webform. In codebehind, I populate
a DataTable whose data should appear in the asp:Table. I created my own
code to populate the asp:Table with the...
|
by: Martin |
last post by:
Hi,
I have a page where according to the mode of use, different controls are
visible.
I had assumed that Page.DataBind() would only bind visible controls, but
apparently not.
Do I have to...
|
by: Martin |
last post by:
Hi,
I've got a web label control which I set a databind expression on the Text
attribute in the html for the page (aspx file).
At runtime, I want to override this attribute, so before I do...
| |
by: Jim Bancroft |
last post by:
Hi everyone,
I have a DropDownList I populate as outlined below. This is from my
code-behind file:
private void Page_Load(object sender, System.EventArgs e)
{
BindMyData();
DataBind();
}
|
by: Aayush Puri |
last post by:
I was going through an article on datagrid control in ASP.NET and found the
use of databind a bit confusing.
So the default behavior in a editable datagrid row is to show a Update and a
Cancel...
|
by: Jurgen Appelo |
last post by:
I'm at a loss here...
My FormView control automatically performs a databind at each postback on
the server. But in some cases I don't want this to happen. Like when the
business layer decides that...
|
by: nicklang |
last post by:
Say you are creating a page which contains a child control which uses a
DataList or DataGrid control. In a DataList, the rows are dynamic
controls and are data bound, so you have to first load the...
|
by: Dunc |
last post by:
Has anyone come across a way to bind simple properties (e.g. <%#
DateTime.Now.Year %>, <%# UserName %in the underlying HTML) without
doing a general DataBind(); call?
Not only does it seem a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |