DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 09 Aug 2007 17:55:10 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    jobs
          2    Eliyahu Goldin


Getting Other Data from SQLDataSource ?   
I have a GRIDVIEW I have bound to an OBJECTDATASOURCE that has the
select pointing to a class method that uses ADO to grab a dataset from
SQL Server Stored Procedure.

One of the columns that comes back I am not interested for the Grid,
But I would like the first ROW's value for a label.

I could do another IO to go get this, but Is there any way I can
extract this data from the DATASOURCE directly in the Codebehind?

Thanks for any help or information.
Date:Thu, 09 Aug 2007 17:55:10 -0700   Author:  

Re: Getting Other Data from SQLDataSource ?   
Why are you using ObjectDataSource if the database is Sql Server?
SqlDataSource provides property DataSourceMode that can be used for getting
a DataTable object from the datasource.

Look here for details:

How to get DataTable out of SqlDataSource
http://msmvps.com/blogs/egoldin/archive/2006/12/27/how-to-get-datatable-out-of-sqldatasource.aspx

-- 
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


"jobs"  wrote in message
news:1186707310.740980.109150@i38g2000prf.googlegroups.com...

> I have a GRIDVIEW I have bound to an OBJECTDATASOURCE that has the
> select pointing to a class method that uses ADO to grab a dataset from
> SQL Server Stored Procedure.
>
> One of the columns that comes back I am not interested for the Grid,
> But I would like the first ROW's value for a label.
>
> I could do another IO to go get this, but Is there any way I can
> extract this data from the DATASOURCE directly in the Codebehind?
>
> Thanks for any help or information.
>
Date:Fri, 10 Aug 2007 09:47:06 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us