Is the ASP.NET GridView Control a smart design?

I have been using gridview for a long time. I have "to live with you with you and you cannot live without you."

The idea of ​​editing, pasting and deleting from the grid is great, but you need to do something like

var sometext = ((TextBox)editRow.FindControl("tbSomeText")).Text;

just seems to me very unreasonable. Has someone come up with a solution or know (a resource) where you perform CRUD + paging and sorting operations from within the grid and should not write ugly code (for example, above). I am not looking for solutions using DataSource objects, as I am not their biggest fan. I will be glad if someone tells me how to live without a GridView in asp.net.

I understand that there are AJAX implementations, but I'm looking for something completely serveride.

+3
source share
4 answers

If you are trying to create a basic CRUD site, check out ASP.NET 3.5 Dynamic Data , which is a great website to add as a clean CRUD data access site. However, its extremely customizable.

Gridview has its advantages, and I loved it in .Net 2.0 times about two / three years ago. However, since then there are much better .Net 3.5 controls (such as ListView) that give you the best opportunity to customize content. I would also look at many third-party grid tools from (Telerik, Infragistics, ComponentArt, ComponentOne, DevExpress), which have much more features than the built-in gridview control.

+1
source

. . html , . , , .

CRUD jQuery thickbox ( iframe).

- Repeater

+3

, , , , - . , , : " GridView".

+1

GridView DetailsView SQL - DetailsView.

DetailsView .

0

Source: https://habr.com/ru/post/1703135/


All Articles