Home All Groups Group Topic Archive Search About

Datagrid inside a Panel doesn't load records

Author
15 Oct 2006 9:22 PM
Lambuz
hi all,
I'm using .NET Framework 2.0 and I've created a Panel with a DataGrid
inside.
This datagrid was created automatically by dragging & dropping into it
a datasource.

The problem is that if I put this panel into a Form I can't load any
data from my db.

If I drag & drop into this same Form the same datasource of the panel
all datas are loaded correctly.

why ?

Thax at all

Author
16 Oct 2006 4:36 AM
Gaurav Vaish (www.EdujiniOnline.com)
> The problem is that if I put this panel into a Form I can't load any
> data from my db.

How are you loading the data?

Design-time or runtime... I mean, datasource is specified before Load
happens or dynamically using SetDataBinding?


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujinionline.com
http://eduzine.edujinionline.com
-----------------------------------------
Author
16 Oct 2006 7:08 AM
Lambuz
Sincererly I don't know, because I've only used the UI of Visual Studio
by dragging & dropping some my datasorurces inside my Panel or my Form.

When I drag & drop inside my Form everytthing works properly, but when
I drag & drop the datasource into my Panel and my Panel into my Form it
doesn't work.

In both case a I have not written any code about binding or something
else.

Where have I to check ?

Show quote
>
> How are you loading the data?
>
> Design-time or runtime... I mean, datasource is specified before Load
> happens or dynamically using SetDataBinding?
>
>
> --
> Happy Hacking,
> Gaurav Vaish | www.mastergaurav.com
> www.edujinionline.com
> http://eduzine.edujinionline.com
> -----------------------------------------
Author
16 Oct 2006 1:53 PM
Gaurav Vaish (www.EdujiniOnline.com)
> In both case a I have not written any code about binding or something
> else.

That means design time.

Can you forward relevant piece of code (remove any sensitive information, if
any) to my email address?

gaurav[dot]vaish[at]gmail (ReplaceAll: [dot] => .; [at] => @)


--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujinionline.com
http://eduzine.edujinionline.com
-----------------------------------------
Author
19 Oct 2006 9:12 AM
Lambuz
Solved.

for some unknown reason the wizard has not put the fill instruction in
the Panel.

thanx

AddThis Social Bookmark Button