Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Dave #1
Datagrid doesn't appear
I'm fairly new to this .NET stuff. I've got two related database tables. The
child table is just a set of textual selections for one of the columns in the
parent table - in Access it's a drop-down selector list. So, nothing too
clever.
I've set up the data connection, two data adapters and a dataset, created
the relation and filled the dataset exactly as described in
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchnavigatingmultiplerelatedtablesinadonetdatase t.asp[/url].
Then I put a datagrid onto my form as described in
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbcondatagridoverview.asp[/url]
and set the datasource and datamember properties.
But when I run the page the datagrid does not appear at all, the page is
just blank.
Can anyone hazard a guess as to what I may have done wrong?
--
Dave
Dave Guest
-
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the datagrid Update event.
How to add a Dropdown list to a datagrid at runtime (dynamic) without using template columns in ASP.NET and still have the ability to us the... -
UserControl inside of datagrid - loses its viewstate when datagrid is re-bound on postback
I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it resides inside a datagrid column and i set the selecteddate property of... -
custom usercontrol inside of datagrid - loses its state/viewstate on re-bind/postback of the datagrid
I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it resides inside a datagrid column and i set the selecteddate property of... -
problema ultima pagina datagrid asp.net/problem last page datagrid
ciao, ho un problema. ho un datagrid in una pagina asp.net con le impostazioni di PAGING abilitate. Uso l'impostazione NUMERIC PAGE. Il problema è... -
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible?
Hello, I am searching the whole Internet for a good example how to edit/update a DataGrid in a DataGrid (nested DataGrid). I know how to... -
Sachin Saki #2
RE: Datagrid doesn't appear
Hi,
Check whether Datatables are populated with data or not. thats the reason i
think your datatables are not populating correctly.
Regards
Sachin Saki
..NET Developer - Capgemini, INDIA
"Dave" wrote:
> I'm fairly new to this .NET stuff. I've got two related database tables. The
> child table is just a set of textual selections for one of the columns in the
> parent table - in Access it's a drop-down selector list. So, nothing too
> clever.
>
> I've set up the data connection, two data adapters and a dataset, created
> the relation and filled the dataset exactly as described in
> [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchnavigatingmultiplerelatedtablesinadonetdatase t.asp[/url].
>
> Then I put a datagrid onto my form as described in
> [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbcondatagridoverview.asp[/url]
> and set the datasource and datamember properties.
>
> But when I run the page the datagrid does not appear at all, the page is
> just blank.
>
> Can anyone hazard a guess as to what I may have done wrong?
> --
> DaveSachin Saki Guest
-
Dave #3
RE: Datagrid doesn't appear
Thanks Sachin, but it wasn't that. I found the problem - I didn't realise I
had to call DataBind() in the code.
--
Dave
"Sachin Saki" wrote:
> Hi,
>
> Check whether Datatables are populated with data or not. thats the reason i
> think your datatables are not populating correctly.
>
> Regards
> Sachin Saki
> .NET Developer - Capgemini, INDIA
>
> "Dave" wrote:
>> > I'm fairly new to this .NET stuff. I've got two related database tables. The
> > child table is just a set of textual selections for one of the columns in the
> > parent table - in Access it's a drop-down selector list. So, nothing too
> > clever.
> >
> > I've set up the data connection, two data adapters and a dataset, created
> > the relation and filled the dataset exactly as described in
> > [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchnavigatingmultiplerelatedtablesinadonetdatase t.asp[/url].
> >
> > Then I put a datagrid onto my form as described in
> > [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbcondatagridoverview.asp[/url]
> > and set the datasource and datamember properties.
> >
> > But when I run the page the datagrid does not appear at all, the page is
> > just blank.
> >
> > Can anyone hazard a guess as to what I may have done wrong?
> > --
> > DaveDave Guest
-
Ger Eielts #4
RE: Datagrid doesn't appear
Thanks.... I had the same problem... now I know and never forget to call
datagrid.databind()
regards, Ger.
Ger Eielts Guest



Reply With Quote

