Re: DataBind()

From: Ignacio Machin \( .NET/ C# MVP \) ("Ignacio)
Date: 10/13/04


Date: Wed, 13 Oct 2004 08:31:06 -0400

Hi,

 The binding mechanism is different in win forms from web forms, take a look
at this link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtskbindingthedatagridcontroltoanadodataset.asp

Cheers,

-- 
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Pam Ammond" <pam@empoweringyou.com> wrote in message
news:7ABA9333-C563-491C-95F5-96AD6A651314@microsoft.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?


Relevant Pages

  • DataBind()
    ... When I try to bind to it using DataBind, such as is mentioned in the ... DataBind() isn't an option. ... My guess is that maybe it's not needed for a WindowsForm, but if so, I'd ... Knowledgebase to explain why DataBindisn't an option for my datagrid. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: DataBind()
    ... "Pam Ammond" wrote: ... > DataBind() isn't an option. ... > My guess is that maybe it's not needed for a WindowsForm, but if so, I'd ... > Knowledgebase to explain why DataBindisn't an option for my datagrid. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Of DataGrids, DataBinding and Server-side Events
    ... You can reset the DataSource and call DataBind() right after you delete the ... > Page_Load event then databind it to the datagrid. ... > again populate my CollectionBase class and databind it a second time to ...
    (microsoft.public.dotnet.framework.aspnet)
  • DataGrid mit AutoGenerateColumns = false
    ... ich habe ein Datagrid, an das eine Dataview mit einer Datatable mit 3 ... Spalten gebunden wird. ... Eigenschaftengenerator über die 2 Spalten "Bearbeiten, Aktualisieren, ... DataBind() aufgerufen. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • AutoGenerateColumns false --> fehlende Cells in UpdateCommand-Methode
    ... ich habe ein Datagrid, an das eine Dataview mit einer Datatable mit 3 ... Spalten gebunden wird. ... Eigenschaftengenerator über die 2 Spalten "Bearbeiten, Aktualisieren, ... DataBind() aufgerufen. ...
    (microsoft.public.de.german.entwickler.dotnet.asp)