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 [...]

HOWTO create a Pop-up menu (context menu) for single cell of a datagrid

Published on November 11, 2008 By admin

Recently I needed fo find a way for a user to be presented with a list of possible values, but to also be able to ignore that list and enter their own value into a datagrid cell. I figured I could just use a combo box column (dropdownlist) and it would behave the same way as a combobox does [...]