DataGrid in VS2008 - asp.net

There is not Datagrid in VS2008.
Did it get killed and replaced?

WinForm: DataGridView
ASP.NET: GridView

Related

GridView with both declarative (Html side) datasource and code-behind datasource

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;

MS Visual Studio 2010 Pro fails to create a datasource for a gridview

I have multiple TabPanels with one GridView each. I successfully used the GUI to set the datasource for each GridView. After adding the latest TabPanel and GridView I created the datasource and finished, but it didn't create any datasource. The datasource dropdownlist in GridView is empty. There are no errors, it just doesn't do anything when I click "finish". Now I can't create a new datasource for any new GridView on any tab. Existing GridViews and datasources work fine. What could cause this?
May be u did copy & paste your code, Or any panel, VS give unique name to sqldatasource always.

gridview from 2 tables visual studio 2005

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

how to populate the textboxes inside a gridview from a datagrid in asp.net?

I am using a gridview in my form.aspx page. The textboxes in each row of the gridview are to be populated from a datagrid upon clicking a particular field of the datagrid. Is there any way to do the same.....?
Did you check out some of the samples the ASP.NET website? Maybe this one can help?
Gridview quickstart on ASP.NET
Otherwise I suggest you describe your problem in greater details. What's the datasource? Anything specific you can't figure out right now? Are you getting any exceptions?

Difference between datagrid and 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

Resources