In Datagrid after adding row, how you will assign the value
for each cell to currently added new row?
Answers were Sorted based on User's Feedback
Answer / prajakta
I will write code of value assignment in UserAddedRow event
of grid.
eg.
Name of grid -grdSticker.
const iRollNo as integer=0
grdsticker.rows(e.rowindex-1).cells(iRollNo).value=7
Is This Answer Correct ? | 5 Yes | 4 No |
Answer / diji varghese
Private Sub DataGridView1_RowsAdded(ByVal sender As Object,
ByVal e As
System.Windows.Forms.DataGridViewRowsAddedEventArgs)
Handles DataGridView1.RowsAdded
Const iRollNo As Integer = 0
Me.DataGridView1.Rows(e.RowIndex).Cells
(iRollNo).Value = 7
End Sub
Is This Answer Correct ? | 0 Yes | 3 No |
What are the types of generations in garbage collector?
Can you please explain the difference between namespace and assembly?
what is intermediate language?
What is global assembly cache (gac)?
What is pre-jit?
What is the difference between convert.tostring and i.tostring method?
Explain how does the xmlserializer work?
1234 123 12 1 how to design above pic in vb.net?
What is difference between import system.data.sqlclient,system.data.oledb?
Write the role of new keyword?
List the two main parts of .net?
What is non_deterministic finalization?