Explain the basic use of "dataview" and explain its methods.



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

Post New Answer

More ADO.NET Interview Questions

Can I use One Data Set for More than one Data Adapter?

6 Answers  


What provider ado.net use by default? Explain the role of data provider in ado.net? What is the role of data provider in ado.net?

1 Answers  


what is data Adapter?

26 Answers   CMC, CSS, IBM,


What are the Data providers in ADO.Net?

1 Answers  


What is Serialization in .NET? what are the types of Serialization?

1 Answers   Arigo Infotech,


what are the two key events for the sql connection class? explain the differnce between the two.

2 Answers   HCL, NIIT, Zensar,


feature of ADO.Net

11 Answers   Wipro,


What are the several execute methods of ado.net?

1 Answers  


What we do with the object of ado.net dataset after using it?

1 Answers  


What is the difference between typed and untyped dataset?

1 Answers  


I loaded the dataset with a table of 10 records. One of the records is deleted from the backend, How do you check whether all the 10 records were present while updating the data(Which event and steps) and throw the exception.

2 Answers   Fulcrum Logic, Satyam,


What providers does Ado.net uses?

1 Answers  


Categories