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 jagged arrarys ?

0 Answers  


Hi I am planning to take interview in VB.net,can any one share your interview Questions for a Entry-level job. Regards Lina

3 Answers  


What is the main purpose of garbage collector?

0 Answers  


How to view an assembly?

0 Answers  


Explain how the .net framework performs automatic memory management.

0 Answers  






hi dear ! thank u for replying to my question regarding adding third party software in vb.net .My next question is that i haven created Data base in SQL server 2000 for Library and has connected that with VB and VB.net separately but it only works on single computer and when i takes my software to another computer on same Network it does not work . Can any body help me what i do to solve. Regards!

1 Answers  


What are the types of generations in garbage collector?

0 Answers  


sir i want to ask you that how can i fetch or get sql data into texboxes.where i want to show record in specific texboxes related to student information.when i click on button all data show on texboxes when i put id or name plz inform me on my id

1 Answers  


What is the Difference between Dataset and Datareader?

7 Answers  


What are the differences between vb.net and c#, related to oops concepts

0 Answers  


What is the relation between Garbage collector and finalize and destructor?

2 Answers   Kanbay,


Explain what observations between vb.net and vc#.net?

0 Answers  


Categories