Hi,
i am trying to make an wizard control that first gathers all data, and after that it will save all data to db.
I have simple entity that has Id, Key,Value. I'd put entities into the list<type> collection. Id fields are empty because entities and collection exists in the session and they are not saved yet. DataKeyNames is set to Key.
Now.. It is binded as datasource. When i put an code to delete items i have some problems. Grid is using sorting and paging (not SQL).
1. It looks like it is working until u add some sorting capabilities. When u add sorting number that u get as e.Item.DataSetIndex is not the one that corresponds to one that is index in the real collection. I couldn't find any way to get correct index. In product documentaion i read that it works only when datatable is binded.
2. I wonder how does it work when i am using objectdatasource with custom paging, or any objectdatasource? Will sorting work in this case, or i must use dataset?
i am trying to make an wizard control that first gathers all data, and after that it will save all data to db.
I have simple entity that has Id, Key,Value. I'd put entities into the list<type> collection. Id fields are empty because entities and collection exists in the session and they are not saved yet. DataKeyNames is set to Key.
Now.. It is binded as datasource. When i put an code to delete items i have some problems. Grid is using sorting and paging (not SQL).
1. It looks like it is working until u add some sorting capabilities. When u add sorting number that u get as e.Item.DataSetIndex is not the one that corresponds to one that is index in the real collection. I couldn't find any way to get correct index. In product documentaion i read that it works only when datatable is binded.
2. I wonder how does it work when i am using objectdatasource with custom paging, or any objectdatasource? Will sorting work in this case, or i must use dataset?