carlo
|
Posted: 10/10/2003, 8:14 AM |
|
Hi,
I have this kind of problem:
I have an "Editable Grid" made with codecharge studio, this editable grid
has only one "empty row" used to insert new values.
If I update a Field instead of adding a new record, (after I submit the
Grid) I have the Field updated but also a New Blank Record generated by the
empty row.
Now, if I try to delete the new blank record using the CheckBox_Delete,
after I submit the grid, I have a new blank record automaticaly generated by
the empty row, and so on....
How can I tell to the "Editable Grid" that it must not save a new Blank
Record from the "empty row" if the "empty row" is blank??
Any Idea?
Thank You
|
|
|
DonB
|
Posted: 10/10/2003, 4:27 PM |
|
I have seen this but (sorry) did not pay alot of attention to it. I would
guess it has to do with the grid being sorted in some way other than by the
primary key. At least that was what it appeared to be when I saw this
myself.
--
DonB
http://www.gotodon.com/ccbth
"carlo" <carlo@carlot.it> wrote in message
news:bm6ic2$84j$1@news.codecharge.com...
> Hi,
> I have this kind of problem:
> I have an "Editable Grid" made with codecharge studio, this editable grid
> has only one "empty row" used to insert new values.
>
> If I update a Field instead of adding a new record, (after I submit the
> Grid) I have the Field updated but also a New Blank Record generated by
the
> empty row.
>
> Now, if I try to delete the new blank record using the CheckBox_Delete,
> after I submit the grid, I have a new blank record automaticaly generated
by
> the empty row, and so on....
>
> How can I tell to the "Editable Grid" that it must not save a new Blank
> Record from the "empty row" if the "empty row" is blank??
>
> Any Idea?
> Thank You
>
>
|
|
|
Karen Tan
|
Posted: 10/11/2003, 12:38 AM |
|
Hi Carlo,
I had a similar problem and if I remembered correctly, it was becoz I
had a default value in a hidden control. Since one control is already
populated, the insert action will take place.
Hope this helps!
Cheers,
Karen
carlo wrote:
> Hi,
> I have this kind of problem:
> I have an "Editable Grid" made with codecharge studio, this editable grid
> has only one "empty row" used to insert new values.
>
> If I update a Field instead of adding a new record, (after I submit the
> Grid) I have the Field updated but also a New Blank Record generated by the
> empty row.
>
> Now, if I try to delete the new blank record using the CheckBox_Delete,
> after I submit the grid, I have a new blank record automaticaly generated by
> the empty row, and so on....
>
> How can I tell to the "Editable Grid" that it must not save a new Blank
> Record from the "empty row" if the "empty row" is blank??
>
> Any Idea?
> Thank You
>
>
|
|
|
|
|