Tag Archive

changing the display order of columns in a datagridview on windows forms

Published on December 1, 2008 By admin

Recently I needed to specify the order that columns were supposed to show up in a datagridview. Normally, one could do this by just changing their SQL query to return the fields in the order that the user wanted to see them. But in my case, this wouldn’t work. You see, I was adding columns to the [...]