hi,i have a three columns in empty datagridview to get a input from user.i had a doubt to create a new row after entering the values in those previous cells
ranashok
0
Newbie Poster
Recommended Answers
Jump to PostDim dt as new datatable ' Code to add columns to table dt.Columns.Add("A", Type.GetType("System.String")) dt.Columns.Add("B", Type.GetType("System.String")) dt.Columns.Add("C", Type.GetType("System.String")) 'Binding the rows to gridview DataGridView1.DataSource = dt ' Code to add new row Dim dr As DataRow dr = dt.NewRow dt.Rows.Add(dr)
All 4 Replies
Pgmer
50
Master Poster
Featured Poster
Eternal Newbie
30
Newbie Poster
Pgmer
50
Master Poster
Featured Poster
Eternal Newbie
30
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.