Hi All
I want to assign a recordset to a datagrid control 6 in a VB 6.0 form. How to do it?
datagrid1.datasource=rs 'recordset
Related
in ASP.NET 3.5 web page, a GridView control can have both SqlDataSource and code-behind datasource (with a DataTable for example)?
Both datasource are equal (the same stored procedure).
Thanks a lot.
Luis
It is possible only under one condition.That you set the DataSourceID to nothing of your gridview before re-assigning its datasource to a datatable.Otherwise visual Studio will scream loudly at you in these lines
'Both DataSource and DataSourceID are defined on 'yourGrid'. Remove one definition.'
yourgrid.DataSourceID=null;
yourGrid.DataSource=yourDataTable;
I have 2 set of dropdownlist controls in asp.net page i want to create one set in one group and other set as one group. eg there are 15 dropdownlist which indicates internal dropdown and other 15 dropdownlist indicates as external drop down.
What is the efficient way to make a gridview from 2 tables (one of them is using the primary key of the other as a foreign key) using visual studio 2005?
thanks
Nested gridview (or datalist/repeater) is what you need. You need to create TemplateField in parent GridView to add another Gridview in it. Handle the RowDataBound event of parent gridview to bind its child elements/controls.
PS: You may read MSDN pages/tutorial about GridView and its events.
MSDN Link : Walkthrough: Creating a Nested GridView Control
There is not Datagrid in VS2008.
Did it get killed and replaced?
WinForm: DataGridView
ASP.NET: GridView
i want to know the main difference between datagrid and gridview in asp.net 2.0
Check out the release from MSDN here: http://msdn.microsoft.com/en-us/magazine/cc163933.aspx