CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Editable Grid add New Row problem

Print topic Send  topic

Author Message
tlhawkins

Posts: 16
Posted: 08/14/2007, 2:09 PM

Thanks for taking a look.

I have an editable grid that I want the OPTION of adding a new row to but when I try to edit rows WITHOUT adding a new row it wont let me. Instead it returns errors that the new row is missing fields. if I add a new row then the updates go through but what if I don't want to add a row?

Please let me know if there is a way to accomplish this without custom coding, if I need to add code then the simplest solution is my favorite
:)

Thanks
View profile  Send private message
wkempees
Posted: 08/14/2007, 5:03 PM

Tell the Editable Grid: No Insert.
Add Rows =0
Then it will pass the update and delete but will not allow insert nor offer
empty rows.
Add a link to the EditableGrid, just like in the normalgrid "Add new record"
From the link call an InsertForm, just like a normal grid would.
?Helped?

Walter

"tlhawkins" <tlhawkins@forum.codecharge> schreef in bericht
news:846c219fd276cf@news.codecharge.com...
> Thanks for taking a look.
>
> I have an editable grid that I want the OPTION of adding a new row to but
> when
> I try to edit rows WITHOUT adding a new row it wont let me. Instead it
> returns
> errors that the new row is missing fields. if I add a new row then the
> updates
> go through but what if I don't want to add a row?
>
> Please let me know if there is a way to accomplish this without custom
> coding,
> if I need to add code then the simplest solution is my favorite
> :)
>
> Thanks
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

Tuong Do
Posted: 08/14/2007, 10:20 PM

tlhawkins

Make sure you don't have default value

"tlhawkins" <tlhawkins@forum.codecharge> wrote in message
news:846c219fd276cf@news.codecharge.com...
> Thanks for taking a look.
>
> I have an editable grid that I want the OPTION of adding a new row to but
> when
> I try to edit rows WITHOUT adding a new row it wont let me. Instead it
> returns
> errors that the new row is missing fields. if I add a new row then the
> updates
> go through but what if I don't want to add a row?
>
> Please let me know if there is a way to accomplish this without custom
> coding,
> if I need to add code then the simplest solution is my favorite
> :)
>
> Thanks
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

tlhawkins

Posts: 16
Posted: 08/15/2007, 8:21 AM

Thanks,

I think we're getting somewhere. Now it's working to update, but it's adding a blank row in the DB and thus on the form every time I make a change.

I can edit the table any way they want but what is it they are looking for in the DB in order for this to work correctly?

I CAN put in some kind of work around, but I sure would like this to just work the way it's supposed to. Is there no checking to see if anything was entered into the "Add a Row" row before it tries to insert it?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.