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



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

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

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

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

Post New Answer

More VB.NET Interview Questions

Explain the difference between dispose and finalize()?

0 Answers  


Which is the base class for all the classes in .net framework?

0 Answers  


What is the use of console application?

0 Answers  


Before in my vb app I would just load the icons from dll. How can I load the icons provided by .net dynamically?

0 Answers  


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

2 Answers   Biz Technology,


What are the advantages of an assembly?

0 Answers  


Explain public assembly?

0 Answers  


what is common type system?

0 Answers  


what is vb.net?

10 Answers  


How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently

0 Answers  


What are the different types of Lock available in Visual Basic?

0 Answers   CGI,


What is the diff between vb mdi form and .net mdi form?

0 Answers  


Categories