J
Just D
Hi,
If anybody needs to show some data retrieved from the database table, what
method is more preferrable?
1. DataSet ds = ...;
DataGrid.Data.Source.ds;
DataGrid.Bind();
2. Write a custom object, fill it with the DataSet data and ÅÒÕÔ try to bind
the DataGrid or DataTable and this custom object?
I usually don't allow users to change anything irectly in the DataGrid, but
I allow to select a row and then show a set of TextBoxes, DropDown lists
etc. to correct/enter data. Is it a good approach or it's better to allow
userworking with the DataGrid directly and then Update this DataSet or
whatever?
Thanks,
Dmitri
If anybody needs to show some data retrieved from the database table, what
method is more preferrable?
1. DataSet ds = ...;
DataGrid.Data.Source.ds;
DataGrid.Bind();
2. Write a custom object, fill it with the DataSet data and ÅÒÕÔ try to bind
the DataGrid or DataTable and this custom object?
I usually don't allow users to change anything irectly in the DataGrid, but
I allow to select a row and then show a set of TextBoxes, DropDown lists
etc. to correct/enter data. Is it a good approach or it's better to allow
userworking with the DataGrid directly and then Update this DataSet or
whatever?
Thanks,
Dmitri