C1 Community
ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Add values to a neally new row

rated by 0 users
This post has 8 Replies | 1 Follower

Top 75 Contributor
Posts 69
jorgebastos Posted: Mon, Jun 22 2009 1:38 PM

Hi,

I need to set some values on some columns, when a new row it's created when the property "AllowAddNew=TRUE" is set, I checked all events to see if there were some event when i could do that, but i didn't found, maybe it exist and i didn't related the name of it with what i want to do?

Is there an event when a new row is added?

Jorge, 

Top 25 Contributor
Posts 372

Hello Jorge,

The C1FlexGrid has a few events that may be useful to you: AfterAddRow and BeforeAddRow.  These events fire when the AllowAddNew property is set to true and the user creates a new empty row by moving the cursor into the last row on the grid.  I hope this helps.

-Raleigh

 P.S.

You can find more information on these events and the C1FlexGrid at http://helpcentral.componentone.com/nethelp/c1flexgrid/.

Top 75 Contributor
Posts 69

Hi,

Well, that seems to be what i want, de fact is that in the version that i still have i don't have those events :(

I'm stuck with a 2.1x version for a few month's more.
I have another licence for a 2.5x version, can you confirm me that those events exist there? (I Didn't installed it yet)

Jorge,
 

Top 25 Contributor
Posts 372

Hello Jorge,

What version of the FlexGrid control are you using and which version will you possibly be migrating to?

Thanks,

-Raleigh

Top 75 Contributor
Posts 69

Right now 2.1x, to 2.5x, in the future to the latest squid for .NET 3.5

Top 25 Contributor
Posts 372

Hello Jorge,

You can determine the version of the C1FlexGrid by opening the C1FlexGrid's smart tag and selecting "About C1FlexGrid..." or right-clicking on the C1FlexGrid and select "About C1FlexGrid".  After this, a dialog will appear containing your version number.  The version number should be similar to this: 2.6.20083.387.

Regards, 

-Raleigh

Top 75 Contributor
Posts 69

2.1.20031.104 

and

2.5.20044.189 

Top 25 Contributor
Posts 372

 Hello Jorge,

The BeforeAddRow and AfterAddRow events were added in build 2.5.20042.161.  These events should be available to you in the 2.5.20044.189 build.  I hope this helps.

 -Raleigh 

Top 75 Contributor
Posts 69

Thanks, it help's, i just have to find sometime for this upgrade, anyway it should not he harmfull since will remain in .NET 1.1 for now. 

Page 1 of 1 (9 items) | RSS
Contact ComponentOne: 1.800.858.2739 ©1987-2010 ComponentOne LLC All Rights Reserved.