Home > Back-end >  DBGRID input data, other lines automatically populate the data?
DBGRID input data, other lines automatically populate the data?

Time:09-27

I above the first line in the first column of the dbgrid input data of 50, I want to input is completed, press enter, the first line of the second column automatically populated into 100, the same is true of the next line, excuse me, how to implement the code? Heard that perceived control such bad basic figure, is this true?

CodePudding user response:

Is this your batch entry, situation in different ways, adopt different ways,
Your program using the database is local or three layers?
Use the DBGrid controls connection?

CodePudding user response:

reference 1st floor lyhoo163 response:
this is a batch entry, you situation in different ways, adopt different ways,
Your program using the database is local or three layers?
Use the DBGrid controls connection?


First of all, to connect with is dbgrideh, actually, I was using a local database, even in remote, I also will only two layers,
I now use is manual single entry in dbgrid, now can be solved after return automatically jump to the next line of the same column, need to be solved is a carriage return after the same lines of the next line populate the data according to some algorithm,

CodePudding user response:

refer to the second floor gangrenxie response:
Quote: refer to 1st floor lyhoo163 response:

Is this your batch entry, situation in different ways, adopt different ways,
Your program using the database is local or three layers?
Use the DBGrid controls connection?


First of all, to connect with is dbgrideh, actually, I was using a local database, even in remote, I also will only two layers,
I now use is manual single entry in dbgrid, now can be solved after return automatically jump to the next line of the same column, need to be solved is a carriage return after the same lines of the next line populate the data according to some algorithm,

In the dbgrid bind the datasource control ondatachange event processing, or use a computed field, and then in the dataset oncalcfields event handling,

CodePudding user response:

reference 1st floor lyhoo163 response:
this is a batch entry, you situation in different ways, adopt different ways,
Your program using the database is local or three layers?
Use the DBGrid controls connection?


First of all, to connect with is dbgrideh, actually, I was using a local database, even in remote, I also will only two layers,
I now use is manual single entry in dbgrid, now can be solved after return automatically jump to the next line of the same column, need to be solved is a carriage return after the same lines of the next line populate the data according to some algorithm,

reference Playmaster reply: 3/f
Quote: refer to the second floor gangrenxie response:

Quote: refer to 1st floor lyhoo163 response:

Is this your batch entry, situation in different ways, adopt different ways,
Your program using the database is local or three layers?
Use the DBGrid controls connection?


First of all, to connect with is dbgrideh, actually, I was using a local database, even in remote, I also will only two layers,
I now use is manual single entry in dbgrid, now can be solved after return automatically jump to the next line of the same column, need to be solved is a carriage return after the same lines of the next line populate the data according to some algorithm,

In the dbgrid bind the datasource control ondatachange event processing, or use a computed field, and then in the dataset oncalcfields event handling,


Ok, try, this problem for a long time, has not been solved!

CodePudding user response:

reference Playmaster reply: 3/f
Quote: refer to the second floor gangrenxie response:

Quote: refer to 1st floor lyhoo163 response:

Is this your batch entry, situation in different ways, adopt different ways,
Your program using the database is local or three layers?
Use the DBGrid controls connection?


First of all, to connect with is dbgrideh, actually, I was using a local database, even in remote, I also will only two layers,
I now use is manual single entry in dbgrid, now can be solved after return automatically jump to the next line of the same column, need to be solved is a carriage return after the same lines of the next line populate the data according to some algorithm,

In the dbgrid bind the datasource control ondatachange event processing, or use a computed field, and then in the dataset oncalcfields event handling,


Sorry, I according to your operation, still can not complete, can you give a demo code

CodePudding user response:

The dataset event AfterInsert processing
  • Related