Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Button column in Datagridview

Status
Not open for further replies.

BasicBoy

Programmer
Feb 22, 2008
156
ZA
I want to have a delete button column in my datagridview as the last column.
If I add the column after I bind it to data, it creates another button column each time I rebind the datagridview and replicates it ad infinitum each time I refresh the list.
If I add the button column when I load the form, it keeps being the first column.
How can I solve this?

Another one if you please:
Can I edit a datagridview by placing another control over the particular cell like we do in the flexgrid - and how does one do it?

Thanks
 
That sounds like a code problem. If a button column exists, verify and do not add a another new one. Also if you are automatically generating columns which is the default, don't. Just rebind to existing columns.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top