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 is vb,net
Explain about jagged arrarys ?
What is datatype conversion?
what is difference between web.config and machine.config and where it will be ?
So you know which dll is used for microsoft .net run time?
when we will use console ?
How vb implements the disconnected architecture as like vb.net?
Why Datareader is useful?
sir how i can calculate the value of two-textbox of gridview and show result in textbox within gridview in asp.net with vb.net..plz sir reply me
Explain about delegate?
Explain some of the exclusive features which are present in vb?
What is the difference between import system.data.sqlclient and system.data.oledb?