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 is vb,net

1 Answers   ME,


Explain about jagged arrarys ?

0 Answers  


What is datatype conversion?

0 Answers  


what is difference between web.config and machine.config and where it will be ?

0 Answers  


So you know which dll is used for microsoft .net run time?

0 Answers  






when we will use console ?

3 Answers  


How vb implements the disconnected architecture as like vb.net?

0 Answers  


Why Datareader is useful?

5 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,


Explain about delegate?

0 Answers  


Explain some of the exclusive features which are present in vb?

0 Answers  


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

0 Answers  


Categories