Hi Everyone-
How can I add these controls to the Grid Header or somewhere as an extension to the grid as a seperate control somewhere on the top.
Is it possible ? Where should I start ? Any code samples?
Thanks in advance.
Swe2.
Well, the easiest thing to do would be to place the controls on the same form with the grid, but outside the grid itself.
If you want to place buttons or other controls inside the grid, then it depends where you want them. There's no built-in way to add buttons to the grid column headers. You could use a CreationFilter to add UIElements in to the column headers, but this is a pretty advanced technique. There's a long discussion about that and some sample code here:
Adding a button to a Column Header - Infragistics Community
Sorry for not being clear. Those are not any third party controls. Ok I want to extend the current wingrid by adding Infragistics button and labels to the header or something like an add-on.
I need to track the button click events and also set label and text field properties.
Is it possible?
Thanks!
What controls are you referring to? Is Xtra the name of some third-party controls? If so, I am not familiar with them, so it's hard to answer your question.
You can't add a control into the grid header, but you can, of course, place any controls you want on the same form above the grid.