I am using vb.net.I'll be using a datagridview which is bound to a datasource.Normally it'll load datas in first row(row(0)) to n th row,i want to load datas only from second row.my question is how to left the first row blank.Someone please help..

Recommended Answers

hello !
i think , first populate the grid in a normal way then add a new row at index(o)

DataGridView1.Rows.Add()
'place this code in the end after populating ur grid

hope this will helps u , if ur prob will solved please mark this thread Solved

Jump to Post

All 2 Replies

hello !
i think , first populate the grid in a normal way then add a new row at index(o)

DataGridView1.Rows.Add()
'place this code in the end after populating ur grid

hope this will helps u , if ur prob will solved please mark this thread Solved

Regards,
M.Waqas Aslam

Thanks M.Waqas Aslam for your concern.
I tried that code but showed an error
Error:Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.
here the datagridview is bound to datasource. please help

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.