M
misiek
Hi all.
I have following problem:
1. In my web page I have a GridView control, which does not have a
DataSourceId set in designer.
2. When user presses Start button then I create programatically a
dataSet, set it as a DataSource for my GridView an add it to Session.
3. I want my users to be able to edit data displayed in GridView, so I
added Edit command column.
4. When user clicks Edit, then I get the following error: "The GridView
'GridViewPI' fired event RowEditing which wasn't handled"
5. I tried to handle that event, but when I place some code to
GridViewPI_RowEditing, then columns in GridView do not change their
appearance, so edit is not possible.
How can I solve this problem?
I cannot update changed data at the moment when user clicks Update,
because he might change his mind. So I need to cache changed data and
update data in database only when user clicks Save button. That is why
I do not set DataSourceId in designer.
Maybe there is some simpler solution to do this?
Thanks in advance.
Misiek
I have following problem:
1. In my web page I have a GridView control, which does not have a
DataSourceId set in designer.
2. When user presses Start button then I create programatically a
dataSet, set it as a DataSource for my GridView an add it to Session.
3. I want my users to be able to edit data displayed in GridView, so I
added Edit command column.
4. When user clicks Edit, then I get the following error: "The GridView
'GridViewPI' fired event RowEditing which wasn't handled"
5. I tried to handle that event, but when I place some code to
GridViewPI_RowEditing, then columns in GridView do not change their
appearance, so edit is not possible.
How can I solve this problem?
I cannot update changed data at the moment when user clicks Update,
because he might change his mind. So I need to cache changed data and
update data in database only when user clicks Save button. That is why
I do not set DataSourceId in designer.
Maybe there is some simpler solution to do this?
Thanks in advance.
Misiek