Explain the basic use of "dataview" and explain its methods.
Answer / Sunil Dutt
DataView is an ADO.NET class that allows you to sort, filter, and format data from a DataTable in memory without affecting the original data. Commonly used methods are Sort, Filter, and ToString. Here's an example:n```csharpnDataView dv = new DataView(myDataTable); // Initialize DataViewndv.Sort = "ColumnName ASC/DESC"; // Sort by column name in ascending or descending orderndataGridView1.DataSource = dv; // Bind to data sourcen```
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the pre-requisites for connection pooling?
How to creating a SqlCommand Object?
WHAT IS DIFF B/W VIEWS AND STORED PROCEDURE
Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.
Why do we need ado.net?
If a dataset contains 100 rows, how to fetch rows between 10 and 20 only ?
Explain ado.net features?
Which database is the ado.net?
How can we add/remove row's in "datatable" object of "dataset"?
Which parameter of ConnectionString is used to specify the name of the database?
How to enable and disable connection pooling?
How do I delete a row from a DataTable?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)