Rank: Newbie Groups: Member
Joined: 12/7/2011 Posts: 7
|
I have a form with a grid using a sqldatasource. When I browse it got this error : The DataSourceID of 'Grid1' must be the ID of a data source control. A control with ID 'dsBankKey' could not be found.
dsBankKey is a declare datasource. that works if i use an ASP:grid.
Another problem that I face is the no mater what, I can't see records in my grid. I've copied the entire part of the sample about Combobox with an inserted grid as template.
Please some advise here.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
Try to declare the DataSource in the same naming container of the Grid and also before the Grid control. As for Grid data, you must explicitly define all columns for the Grid.
Thanks!
|