How to populate succeeding rows with selected specific cell values only?
So I was trying to make a grading system in vb.net. In my datagridview, I am to create a student's record. I am using MS access database. Since many records will be created for the students, many rows will be created on my datagridview. Now, if I am to put a specific exam item on the first row in a specific cell, how can I get that specific value to the same cell but on the next succeeding rows so that I don't need to manually type in the same exam items for all the records? I'm new to vb.net and I have no idea how to do it. Please help me.
vb.net datagrid
|
show 1 more comment
So I was trying to make a grading system in vb.net. In my datagridview, I am to create a student's record. I am using MS access database. Since many records will be created for the students, many rows will be created on my datagridview. Now, if I am to put a specific exam item on the first row in a specific cell, how can I get that specific value to the same cell but on the next succeeding rows so that I don't need to manually type in the same exam items for all the records? I'm new to vb.net and I have no idea how to do it. Please help me.
vb.net datagrid
Question unclear, it is not specific enough.
– CruleD
Nov 15 '18 at 11:56
1
See the DataGridView.RowsAdded event. It's raised when you add a new Row to the DGV. Note that thee.RowIndex
value is different from the usual, it doesn't start from 0 (e.g., if you have 1 Row (Row(0)) and you add a new one,e.RowIndex
will have value 2, not 1). When the event is raised, copy the value of the preceding Cell of a specifc Column to new Row's Cell in the same Column.
– Jimi
Nov 15 '18 at 12:44
Can you please provide an example of what you're talking about, even if it's bogus data.. This question is pretty confusing to us even though it may be clear to you.
– haag1
Nov 15 '18 at 14:18
I want to populate specific cells in all the rows of my datagridview with a value that will be inputted on the very first row. Let's say I have 10 columns in one Row, if I input a value of 10 on Row (0)Cell(1), I want all the Cell1 of all succeeding Rows to have the value of 10 without inputting it again. I don't know it I need to create a loop for that or what event I should code it under.
– Jem Flor Dela Cerna
Nov 15 '18 at 20:33
@Jimi can you please provide me a sample code for that?
– Jem Flor Dela Cerna
Nov 15 '18 at 20:35
|
show 1 more comment
So I was trying to make a grading system in vb.net. In my datagridview, I am to create a student's record. I am using MS access database. Since many records will be created for the students, many rows will be created on my datagridview. Now, if I am to put a specific exam item on the first row in a specific cell, how can I get that specific value to the same cell but on the next succeeding rows so that I don't need to manually type in the same exam items for all the records? I'm new to vb.net and I have no idea how to do it. Please help me.
vb.net datagrid
So I was trying to make a grading system in vb.net. In my datagridview, I am to create a student's record. I am using MS access database. Since many records will be created for the students, many rows will be created on my datagridview. Now, if I am to put a specific exam item on the first row in a specific cell, how can I get that specific value to the same cell but on the next succeeding rows so that I don't need to manually type in the same exam items for all the records? I'm new to vb.net and I have no idea how to do it. Please help me.
vb.net datagrid
vb.net datagrid
asked Nov 15 '18 at 11:43
Jem Flor Dela CernaJem Flor Dela Cerna
71
71
Question unclear, it is not specific enough.
– CruleD
Nov 15 '18 at 11:56
1
See the DataGridView.RowsAdded event. It's raised when you add a new Row to the DGV. Note that thee.RowIndex
value is different from the usual, it doesn't start from 0 (e.g., if you have 1 Row (Row(0)) and you add a new one,e.RowIndex
will have value 2, not 1). When the event is raised, copy the value of the preceding Cell of a specifc Column to new Row's Cell in the same Column.
– Jimi
Nov 15 '18 at 12:44
Can you please provide an example of what you're talking about, even if it's bogus data.. This question is pretty confusing to us even though it may be clear to you.
– haag1
Nov 15 '18 at 14:18
I want to populate specific cells in all the rows of my datagridview with a value that will be inputted on the very first row. Let's say I have 10 columns in one Row, if I input a value of 10 on Row (0)Cell(1), I want all the Cell1 of all succeeding Rows to have the value of 10 without inputting it again. I don't know it I need to create a loop for that or what event I should code it under.
– Jem Flor Dela Cerna
Nov 15 '18 at 20:33
@Jimi can you please provide me a sample code for that?
– Jem Flor Dela Cerna
Nov 15 '18 at 20:35
|
show 1 more comment
Question unclear, it is not specific enough.
– CruleD
Nov 15 '18 at 11:56
1
See the DataGridView.RowsAdded event. It's raised when you add a new Row to the DGV. Note that thee.RowIndex
value is different from the usual, it doesn't start from 0 (e.g., if you have 1 Row (Row(0)) and you add a new one,e.RowIndex
will have value 2, not 1). When the event is raised, copy the value of the preceding Cell of a specifc Column to new Row's Cell in the same Column.
– Jimi
Nov 15 '18 at 12:44
Can you please provide an example of what you're talking about, even if it's bogus data.. This question is pretty confusing to us even though it may be clear to you.
– haag1
Nov 15 '18 at 14:18
I want to populate specific cells in all the rows of my datagridview with a value that will be inputted on the very first row. Let's say I have 10 columns in one Row, if I input a value of 10 on Row (0)Cell(1), I want all the Cell1 of all succeeding Rows to have the value of 10 without inputting it again. I don't know it I need to create a loop for that or what event I should code it under.
– Jem Flor Dela Cerna
Nov 15 '18 at 20:33
@Jimi can you please provide me a sample code for that?
– Jem Flor Dela Cerna
Nov 15 '18 at 20:35
Question unclear, it is not specific enough.
– CruleD
Nov 15 '18 at 11:56
Question unclear, it is not specific enough.
– CruleD
Nov 15 '18 at 11:56
1
1
See the DataGridView.RowsAdded event. It's raised when you add a new Row to the DGV. Note that the
e.RowIndex
value is different from the usual, it doesn't start from 0 (e.g., if you have 1 Row (Row(0)) and you add a new one, e.RowIndex
will have value 2, not 1). When the event is raised, copy the value of the preceding Cell of a specifc Column to new Row's Cell in the same Column.– Jimi
Nov 15 '18 at 12:44
See the DataGridView.RowsAdded event. It's raised when you add a new Row to the DGV. Note that the
e.RowIndex
value is different from the usual, it doesn't start from 0 (e.g., if you have 1 Row (Row(0)) and you add a new one, e.RowIndex
will have value 2, not 1). When the event is raised, copy the value of the preceding Cell of a specifc Column to new Row's Cell in the same Column.– Jimi
Nov 15 '18 at 12:44
Can you please provide an example of what you're talking about, even if it's bogus data.. This question is pretty confusing to us even though it may be clear to you.
– haag1
Nov 15 '18 at 14:18
Can you please provide an example of what you're talking about, even if it's bogus data.. This question is pretty confusing to us even though it may be clear to you.
– haag1
Nov 15 '18 at 14:18
I want to populate specific cells in all the rows of my datagridview with a value that will be inputted on the very first row. Let's say I have 10 columns in one Row, if I input a value of 10 on Row (0)Cell(1), I want all the Cell1 of all succeeding Rows to have the value of 10 without inputting it again. I don't know it I need to create a loop for that or what event I should code it under.
– Jem Flor Dela Cerna
Nov 15 '18 at 20:33
I want to populate specific cells in all the rows of my datagridview with a value that will be inputted on the very first row. Let's say I have 10 columns in one Row, if I input a value of 10 on Row (0)Cell(1), I want all the Cell1 of all succeeding Rows to have the value of 10 without inputting it again. I don't know it I need to create a loop for that or what event I should code it under.
– Jem Flor Dela Cerna
Nov 15 '18 at 20:33
@Jimi can you please provide me a sample code for that?
– Jem Flor Dela Cerna
Nov 15 '18 at 20:35
@Jimi can you please provide me a sample code for that?
– Jem Flor Dela Cerna
Nov 15 '18 at 20:35
|
show 1 more comment
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53318745%2fhow-to-populate-succeeding-rows-with-selected-specific-cell-values-only%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53318745%2fhow-to-populate-succeeding-rows-with-selected-specific-cell-values-only%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Question unclear, it is not specific enough.
– CruleD
Nov 15 '18 at 11:56
1
See the DataGridView.RowsAdded event. It's raised when you add a new Row to the DGV. Note that the
e.RowIndex
value is different from the usual, it doesn't start from 0 (e.g., if you have 1 Row (Row(0)) and you add a new one,e.RowIndex
will have value 2, not 1). When the event is raised, copy the value of the preceding Cell of a specifc Column to new Row's Cell in the same Column.– Jimi
Nov 15 '18 at 12:44
Can you please provide an example of what you're talking about, even if it's bogus data.. This question is pretty confusing to us even though it may be clear to you.
– haag1
Nov 15 '18 at 14:18
I want to populate specific cells in all the rows of my datagridview with a value that will be inputted on the very first row. Let's say I have 10 columns in one Row, if I input a value of 10 on Row (0)Cell(1), I want all the Cell1 of all succeeding Rows to have the value of 10 without inputting it again. I don't know it I need to create a loop for that or what event I should code it under.
– Jem Flor Dela Cerna
Nov 15 '18 at 20:33
@Jimi can you please provide me a sample code for that?
– Jem Flor Dela Cerna
Nov 15 '18 at 20:35