HighTechTalks DotNet Forums  

DataBinding with Gridview

ASP.net Data Grid Control microsoft.public.dotnet.framework.aspnet.datagridcontrol


Discuss DataBinding with Gridview in the ASP.net Data Grid Control forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Seema
 
Posts: n/a

Default DataBinding with Gridview - 05-15-2009 , 12:31 PM






I have the following coding in my web form.

var type = (from p in entities.Address select p);
this.GridView2.DataSource = type;
this.GridView2.DataBind();

Here in table Address I have one column named "Status" which is foreign Key.
When I selected all the columns and try to bind with GridView it is not
showing that column which is forign key. What is the reason.

Thanks

Reply With Quote
  #2  
Old   
Alexey Smirnov
 
Posts: n/a

Default Re: DataBinding with Gridview - 05-18-2009 , 02:49 AM






On May 15, 7:31*pm, Seema <Se... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I have the following coding in *my web form.

var type = (from p in entities.Address select p);
* * * * * * this.GridView2.DataSource = type;
* * * * * * this.GridView2.DataBind();

Here in table Address I have one column named "Status" which is foreign Key.
When I selected all the columns and try to bind with GridView it is not
showing that column which is forign key. *What is the reason.

Thanks
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/3c87aa3d10ef990e#


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.