New Row on Enter Ultra Grid

Documentation ?

--- In vantage@yahoogroups.com, "Brian Roberts" <broberts@...> wrote:
>
> Jose, I noticed this in the documentation when looking for something
> else - haven't tried it myself. Last paragraph below.
>
> Brian.
>
>
>
>
>
>
>
> Add a Row Behavior
>
> To provide the behavior of adding a new row within a grid, write code
> that listens to the BeforeRowInserted
>
> event. Typically this event handler calls the correct GetNew method
> within the transaction, so there
>
> will normally be a separate handler for each grid that is linkded to a
> different view. Here is an example of
>
> the BeforeRowInserted event handler:
>
>
>
> Even if Add New is not allowed, you must have the code listen to this
> event and set the event
>
> arguement's Cancel flag to True (e.Cancel=True). This prevents the grid
> from inserting a new
>
> row when a grid is in View Only mode.
>
>
>
>
>
>
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Jose Gomez
> Sent: Monday, August 22, 2011 4:21 PM
> To: Vantage
> Subject: [Vantage] New Row on Enter Ultra Grid
>
>
>
>
>
> I have an Ultra Grid bound to QuoteDtl when I hit enter on the grid it
> throws an error saying that Insertion Is Not Allowed on my Data Set.
> Only
> problem is I don't want to add a new record, any idea how to disable
> that
> functionality?
>
> Thaks!
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
I have an Ultra Grid bound to QuoteDtl when I hit enter on the grid it
throws an error saying that Insertion Is Not Allowed on my Data Set. Only
problem is I don't want to add a new record, any idea how to disable that
functionality?


Thaks!

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*


[Non-text portions of this message have been removed]
Jose, I noticed this in the documentation when looking for something
else - haven't tried it myself. Last paragraph below.

Brian.







Add a Row Behavior

To provide the behavior of adding a new row within a grid, write code
that listens to the BeforeRowInserted

event. Typically this event handler calls the correct GetNew method
within the transaction, so there

will normally be a separate handler for each grid that is linkded to a
different view. Here is an example of

the BeforeRowInserted event handler:



Even if Add New is not allowed, you must have the code listen to this
event and set the event

arguement's Cancel flag to True (e.Cancel=True). This prevents the grid
from inserting a new

row when a grid is in View Only mode.







________________________________

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
Of Jose Gomez
Sent: Monday, August 22, 2011 4:21 PM
To: Vantage
Subject: [Vantage] New Row on Enter Ultra Grid





I have an Ultra Grid bound to QuoteDtl when I hit enter on the grid it
throws an error saying that Insertion Is Not Allowed on my Data Set.
Only
problem is I don't want to add a new record, any idea how to disable
that
functionality?

Thaks!

*Jose C Gomez*
*Software Engineer*
*
*





[Non-text portions of this message have been removed]
Thank you Brian

I actually solved my problem shortly after I submitted by using what you
mentioned

Thanks!

*Jose C Gomez*
*Software Engineer*
*
*
*checkout my new blog <http://www.usdoingstuff.com> *
*
*T: 904.469.1524 mobile
E: jose@...
http://www.josecgomez.com
<http://www.linkedin.com/in/josecgomez> <http://www.facebook.com/josegomez>
<http://www.google.com/profiles/jose.gomez> <http://www.twitter.com/joc85>
<http://www.josecgomez.com/professional-resume/>
<http://www.josecgomez.com/feed/>
<http://www.usdoingstuff.com>

*Quis custodiet ipsos custodes?*



On Wed, Aug 24, 2011 at 9:52 AM, Brian Roberts <broberts@...> wrote:

> **
>
>
> Jose, I noticed this in the documentation when looking for something
> else - haven't tried it myself. Last paragraph below.
>
> Brian.
>
> Add a Row Behavior
>
> To provide the behavior of adding a new row within a grid, write code
> that listens to the BeforeRowInserted
>
> event. Typically this event handler calls the correct GetNew method
> within the transaction, so there
>
> will normally be a separate handler for each grid that is linkded to a
> different view. Here is an example of
>
> the BeforeRowInserted event handler:
>
> Even if Add New is not allowed, you must have the code listen to this
> event and set the event
>
> arguement's Cancel flag to True (e.Cancel=True). This prevents the grid
> from inserting a new
>
> row when a grid is in View Only mode.
>
> ________________________________
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf
> Of Jose Gomez
> Sent: Monday, August 22, 2011 4:21 PM
> To: Vantage
> Subject: [Vantage] New Row on Enter Ultra Grid
>
>
> I have an Ultra Grid bound to QuoteDtl when I hit enter on the grid it
> throws an error saying that Insertion Is Not Allowed on my Data Set.
> Only
> problem is I don't want to add a new record, any idea how to disable
> that
> functionality?
>
> Thaks!
>
> *Jose C Gomez*
> *Software Engineer*
> *
> *
>
> [Non-text portions of this message have been removed]
>
>
>


[Non-text portions of this message have been removed]