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 an assembly and its use?
ColumnMapping belongs to which namespaces?
linex will support dot net?
4 Answers Phoenix Technologies,
What is the difference between c# and vb.net?
Described strong typing and weak typing?
What is the difference between compiler and interpreter?
Why do you need Lock in Visual Basic?
In order to get assembly info whcih namespace we should import?
how to create crystal reports in asp.net & vb.net with syntax
diff b/w windows and console application?
What is the feature anonymous type?
What is the difference between import system.data.sqlclient and system.data.oledb?
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)