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

How to store decimal data in .net?

0 Answers  


Thank you for replying to my Question regarding Barcodes in VB.net. My next question is that how to use Barcode Fonts in VB.net I need a small code to Generate Barcodes in VB.net from a string of Values. This is the only problem i am left with in my project. Any body can help me please.

0 Answers  


Difference between VB dll and assemblies in .NET ?

5 Answers   Digital GlobalSoft,


List the different types of assembly?

0 Answers  


ColumnMapping belongs to which namespaces?

1 Answers  






What is the difference between manifest and metadata?

0 Answers  


what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.

0 Answers   MCN Solutions,


hello friends.. when i deployment my project in the client machine that is successful but whenever i try to run my project using .exe file then it gives me error "<filename>.exe is not a valid win32 application." what i do somebody halp me pls

1 Answers  


What is the use of system.diagnostics.process class?

0 Answers  


How to retrieve images in sql server database through vb.net?

0 Answers  


Explain about the performance of visual basic?

0 Answers  


in my windows application i have to show excelwork sheetwhich is stored in the local system can any one tell me the code?

1 Answers  


Categories