In Datagrid after adding row, how you will assign the value
for each cell to currently added new row?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between web.config and machine.config and where it will be ?

573


my project run very wel in my sytem yhen i am deploying my project on client machine ,after deployment i run my project then it show " can no find server name " what i do .

1631


Observations between vb.net and vc#.net?

656


What are the different types of a stream?

634


What is globalization?

631






What do you mean by serialization and deserialization and it's use.

688


Why do we use byref keyword in vb.net?

695


What is the difference between custom control and user control?

630


Explain the difference between c# and vb.net?

633


i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate

1985


What is the difference between import system.data.sqlclient and system.data.oledb?

587


What is the importance of a Button control?

968


described weak typing?

675


Explain the difference between vb 6 and vb.net?

616


Why is the xml infoset specification different from the xml dom?

606