Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Gomathi #1
How to find a dataset had values
hi all,
In ASP.Net , i'm binding a dataset to a datagrid. Its showing error when the
dataset has no values. So I have to find whether dataset has any values or
not. How to do that?
Thanks in advance.
Regards,
Gomathi
Gomathi Guest
-
extracting values from a dataset
I have a dataset set-up in my application which has one column which will only ever have one row of data in it (i.e. the previous valid voucher... -
DataSet/DataGrid/Null values
Strange thing - when I bind a dataset to a datagrid and the dataset column has null values, I cannot edit it. If I try to edit the value, it just... -
Null values in typed dataset
Hi! I have a typed dataset which I fill from a select statement, but some columns in my result my be null. When I read this null columns in my... -
How to find grid's row that matches row in dataset
how to set SelectedIndex of the grid to the row that matches a datarow found in the underlying dataset (besides looping thru all rows and comparing... -
web services htc getting array or dataset values
I'm new to this web services arena... I was able to use the MSDN example of Web Services with the HTC file. Pretty neat as I didn't want my page... -
Eliyahu Goldin #2
Re: How to find a dataset had values
Check myGrid.Items.Count on 0.
Eliyahu
"Gomathi" <gomathi@celtycs-consulting.com> wrote in message
news:OC6FFdc6FHA.3136@TK2MSFTNGP09.phx.gbl...> hi all,
>
> In ASP.Net , i'm binding a dataset to a datagrid. Its showing error when
> the dataset has no values. So I have to find whether dataset has any
> values or not. How to do that?
>
> Thanks in advance.
>
> Regards,
> Gomathi
>
Eliyahu Goldin Guest
-
Pathik H Rawal #3
RE: How to find a dataset had values
Hi,
if(ds.Table[0].Rows.Count>0)
{
dbGrid.DataSource=ds
dbGrid.DataBind()
}
--
Pathik H Rawal
(DotNet Guy)
"Gomathi" wrote:
> hi all,
>
> In ASP.Net , i'm binding a dataset to a datagrid. Its showing error when the
> dataset has no values. So I have to find whether dataset has any values or
> not. How to do that?
>
> Thanks in advance.
>
> Regards,
> Gomathi
>
>
>Pathik H Rawal Guest



Reply With Quote

