Hi,
I have noticed when I drag a infragistics grid from the toolbox and put it to the form... I am able to see some background text on that... " Drag a colum ....to group by"
THis text is coming during runtime also, I need to remove this... during design time and run time....
to remove the text we can by setting the below property.
webgrid.displaylayout.groupbybox.hidden = true
But, by setting the above property, i am ended with one more problem... there is GAP..see the below snapshot...for the same.
It would be highly appreciated if anyone can help me out in this issue.
What is that toolbar at the top of the grid? There's no toolbar like that built-in to the grid. It looks like maybe you are using a CreationFilter to modify the grid elements. In which case, your CreationFilter must be relying on the GroupByBox for something. But I'm afraid I couldn't begin to guess what your code is doing there.
Hi Mike,
Sorry for not letting you understand my issue :(
Basically we are working on the customized infragistics grid ...which has lot of functionalities corresponds to our client needs.
"Drag a colum ....to group by"
2: for the first point..i have got the inputs from the forum..to hide this text..there are two options...
a: we can set the groupbybox.hidden = false...
b: Second option is webgrid.displaylayout.groupbybox.prompt = ""
c: by setting the 1st option groupbybox.hidden = false..which leads me a another error...that is my entire toolbar in top of the grid....not visible properly...when i scroll my scrollbar in the grid...
But when i tried with the second option by setting the prompt value to "" the above said error is not coming which is good sign...
Ultimately...my goal is to remove the text and to fill the gap.... Once again... I am attaching the snapshot.. for your reference.
Let me know if you need further clarification.
Regards,
Mohan
Hi Mohan,
I don't understand what you mean. You can't have the GroupByBox and not have the GroupByBox at the same time.
The GroupByBox allows the user to group by columns. It has nothing to do with the scrollbar.
Thanks for your quick response!!!
I have already tried out by setting the displaylayout to vertical... but ultimately that leeds to another problem which I was not able to do scrooling with the scroll bar...
So, basically I need to have groupbox but at the same time.. i need to filll the gap...which i have show in my earlier mail...
Is there any possibility to achive the same????
Awaiting for your response...
Thanks,
It sounds like you don't want to remove the text, you want to turn off the OutlookGroupBy feature.The easiest thing to do is to go into the grid designer (click the Start button on the grid) and go to the Basic Settings -> Feature Picker. Look at the setting for OutlookGroupBy and uncheck the Active option.
Of, if you want to deal with the property settings directly, set grid.DisplayLayout.ViewStyleBand to Vertical.