im added columns dynamicaly in Gridview like Gridview .Columns.Add(coumn0); which is in a function.

but again i call same function i was getting results but columns numbers are repeating each call. can u help me to solve this problem


By Atheeth

If I were you, I will remove all columns in that GridView and then I will add the columns again

GV.Columns.Clear()
GV.Columns.Add(coumn0)
GV.Columns.Add(coumn1)
GV.Columns.Add(coumn2)
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.