Can i add a background image to the Windows datagrid?
-
hi! im trying to build a data grid which has a different appearance than the traditional one. like the header row will have a different background...how can i attain that in windows data grid? can anybody help me? Rajesh
-
hi! im trying to build a data grid which has a different appearance than the traditional one. like the header row will have a different background...how can i attain that in windows data grid? can anybody help me? Rajesh
you have to subclass the existing winforms datagrid class, add the appropriate properties and draw them yourself in the paint implementation. this is not difficult, but could be time consuming depending on your own personal skill level. hope this helps. :)
-jim
-
you have to subclass the existing winforms datagrid class, add the appropriate properties and draw them yourself in the paint implementation. this is not difficult, but could be time consuming depending on your own personal skill level. hope this helps. :)
-jim
But in that case will i be able to disable to display the extra column shown at the beginning(the one with arrow and a star)? in my design i dont want that.
-
But in that case will i be able to disable to display the extra column shown at the beginning(the one with arrow and a star)? in my design i dont want that.
in that case i would recommend looking at one of the many freely available open source datagrid controls that are out there such as SourceGrid by Davide Icardi. Not sure if this is going to have all of the functionality you need, but at least it will be a starting point. You can then use the source code to help start designing a custom grid of your own, or extend it to do exactly what you need. Be sure to check the license agreement for usage restrictions. hope this helps.
-jim
-
in that case i would recommend looking at one of the many freely available open source datagrid controls that are out there such as SourceGrid by Davide Icardi. Not sure if this is going to have all of the functionality you need, but at least it will be a starting point. You can then use the source code to help start designing a custom grid of your own, or extend it to do exactly what you need. Be sure to check the license agreement for usage restrictions. hope this helps.
-jim
thanks a lot Jim. Im sure that i can proceed on with this.