ASP.Net 2.0 has a new control to display tabular data which is called GridView. It's supposed to be more advanced than ASP.Net 1.1's DataGrid, but I personally prefer to use DataGrid when there are data manipulation to be done on the tabular data itself.
ASP.Net 2.0 supports DataGrid for backward compatibility purposes.
The reason why I don't really like ASP.Net 2.0 GridView is because it's difficult to do updating and deleting when the DataSource of the gridview is not an SqlDataSource, but just a simple dataset that you retrieve for the database.
A few problems that I encountered:
Maybe I'm too used to the old DataGrid but then again, people always say "If it's not broken, thn don't fix it" so I'm sticking to the DataGrid!
Don't get me wrong, the GridView also has a lot of advantages over DataGrid, just that for my own purposes, the DataGrid serves me better :)
ASP.Net 2.0 supports DataGrid for backward compatibility purposes.
The reason why I don't really like ASP.Net 2.0 GridView is because it's difficult to do updating and deleting when the DataSource of the gridview is not an SqlDataSource, but just a simple dataset that you retrieve for the database.
A few problems that I encountered:
- When I edit a column and click Update, it didn't get the value of the template column, instead it reads the default selected value of the drop down list
- It couldn't easily get the controls in the row being updated
Maybe I'm too used to the old DataGrid but then again, people always say "If it's not broken, thn don't fix it" so I'm sticking to the DataGrid!
Don't get me wrong, the GridView also has a lot of advantages over DataGrid, just that for my own purposes, the DataGrid serves me better :)
No comments:
Post a Comment