i have a code where I dynamically generate the columns name and bind it it datatable. now I am iterating thru loop for each column and fill the datatable. My Problem is when I fill for first column row is already added to the position(e.g 0,1). I want help with the code if row at some position already exist in datatable I should not write
dr = dt.NewRow() dt.Rows.Add(dr)
As it generates duplicate rows. Please help me with the code vb.net 2010.