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 and brief about rapid application development tool?

755


Can you please explain the difference between authentication and authorization?

753


i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?

2433


What is tracing?

787


what is common language specification?

702


What is the difference between value and reference types?

721


What is the difference between readonly variable and constant variable?

753


What is the maximum size of the textbox?

718


Can you please explain the difference between thread and process?

730


What are the difference between dispose(), close(), exit(), end()?

683


Explain the services provided by common language infrastructure.

920


What is the difference between Namespace and Assembly?

784


What are the features present in vb 2005?

739


Explain how to store decimal data in .net?

910


Explain the difference between vb.net and c#, related to oops concepts?

696