c# - Add functionality to existing DataGridView -



c# - Add functionality to existing DataGridView -

i have datagridviews throughout winforms application.

i want able add together functionality datagridview having write code on each form. 1 method / event in 1 place added existing grids.

i want able right click , have contextmenu popup allows generic menu appear has standard export options.

i understand can add together functionality using extension methods, not believe right approach situation.

i if did not have derive new class datagridview class , add together functionality derived class, have alter dgv's derived dgv class.

can add together or extend existing datagridview class , add together global generic method , events accomplish generic popup menu

hope create sense....

refer article, has export excel alternative , few others, hope help you. http://www.codeproject.com/articles/26263/extending-the-datagridview

c# winforms datagridview

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -