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

What are the types of generations in garbage collector?

0 Answers  


Can you please explain the difference between namespace and assembly?

0 Answers  


what is intermediate language?

0 Answers  


What is global assembly cache (gac)?

0 Answers  


What is pre-jit?

0 Answers  






What is the difference between convert.tostring and i.tostring method?

0 Answers  


Explain how does the xmlserializer work?

0 Answers  


1234 123 12 1 how to design above pic in vb.net?

2 Answers   ABC,


What is difference between import system.data.sqlclient,system.data.oledb?

0 Answers  


Write the role of new keyword?

0 Answers  


List the two main parts of .net?

0 Answers  


What is non_deterministic finalization?

0 Answers  


Categories