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
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 |
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 |
What is CLR?
20 Answers Horizon Computers, Microsoft,
Explain convert.tostring and i.tostring method?
ColumnMapping belongs to which namespaces?
What is the difference between system.applicationexception class and system.systemexception?
How can we remove handlers at run time?
Explain jit?
how to deploy vb.net with key and evaluation time? any one can help me?
What do you mean by option strict on?
What are the different variables in vb.net?
Explain option explicit?
Define manifest?
I have an opening for "APRIMO" Developer in Mumbai Location
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)