all groups > dotnet windows forms designtime > october 2006 >
You're in the

dotnet windows forms designtime

group:

Datagrid inside a Panel doesn't load records


Datagrid inside a Panel doesn't load records Lambuz
10/15/2006 2:22:12 PM
dotnet windows forms designtime:
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
Re: Datagrid inside a Panel doesn't load records Lambuz
10/16/2006 12:08:28 AM
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 ?

[quoted text, click to view]
Re: Datagrid inside a Panel doesn't load records Gaurav Vaish (www.EdujiniOnline.com)
10/16/2006 10:06:45 AM
[quoted text, click to view]

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
-----------------------------------------

Re: Datagrid inside a Panel doesn't load records Gaurav Vaish (www.EdujiniOnline.com)
10/16/2006 7:23:45 PM
[quoted text, click to view]

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
-----------------------------------------

Re: Datagrid inside a Panel doesn't load records Lambuz
10/19/2006 2:12:48 AM
Solved.

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

thanx
AddThis Social Bookmark Button