Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
KK #1
The IListSource does not contain any data sources. <-- ?
Hi
When I execute an SQL steatement, I retreive a
Dataset. For some queries which does not
return any data, If I assign it to the
datagrid.datasource and bind, it throws the following
exception
However, dataset doesn't say its NULL. So that Ican>The IListSource does not contain any data sources.
check for null and if its null, I don't bind it to grid.
Jist, as to test, I did a
and if there are no data it just outputs a "<NewDataSet />">System.Diagnostics.Debug.WriteLine(results.GetXml ());
which says no data. Everytime, when this happens if I
assign to grid it throws the above exception.
There should be a nice way to check this isn't it?
How can I avoid this error?
rgds
KK
KK Guest
-
How to add security to data sources from SQL 2000
How to add security to data sources from SQL 2000 I have been doing ColdFusion programming for over 5 years and now I hired an assistant for... -
Data Sources
Can anyone tell me how to get a list of Data Sources from CF server using cfml? Thanks: Phil -
backup data sources
Is it possible to backup data sources from one server to another? I need to move data sources from Coldfusion MX to Coldfusion MX 7 server. Thanks... -
Restoring data sources in CF 5.0
Hello guys, Could you please suggest a way to backup data sources for sybase, oracle and db2 from one UNIX server (Solaris) to another Solaris... -
how to access data from 2 different sources?
I need to use data from multiple tables that are located in 2 different databases. Most of the tables are in SQL Server 2000 but 1 one the tables I... -
Srimathi #2
RE: The IListSource does not contain any data sources. <-- ?
Hi,
I think you can check for the tables count and if the tables
(Dataset.Tables.Count) count is greater than 0, then you can bind it to the
datagrid.
Srimathi.
"KK" wrote:
> Hi
>
> When I execute an SQL steatement, I retreive a
> Dataset. For some queries which does not
> return any data, If I assign it to the
> datagrid.datasource and bind, it throws the following
> exception
>>> >The IListSource does not contain any data sources.
> However, dataset doesn't say its NULL. So that Ican
> check for null and if its null, I don't bind it to grid.
>
> Jist, as to test, I did a
>> and if there are no data it just outputs a "<NewDataSet />"> >System.Diagnostics.Debug.WriteLine(results.GetXml ());
> which says no data. Everytime, when this happens if I
> assign to grid it throws the above exception.
>
> There should be a nice way to check this isn't it?
>
> How can I avoid this error?
> rgds
> KK
>
>
>Srimathi Guest



Reply With Quote

