473,513 Members | 2,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataBind()

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?
Nov 16 '05 #1
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?

Nov 16 '05 #2
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?

Nov 16 '05 #3
Thank you Ignacio and Rakesh. Your answers helped me to understand
databinding much better :-)

Pam
Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1395
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...
2
2258
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...
3
11994
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...
7
3216
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...
1
1502
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...
2
1762
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(); }
1
1512
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...
5
2169
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...
0
1042
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...
1
1831
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...
0
7267
marktang
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,...
0
7391
Oralloy
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,...
0
7553
jinu1996
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...
1
7120
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...
0
7542
tracyyun
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...
0
5697
agi2029
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,...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
466
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.