Hello,
First Question:
Once I am done databinding the grid, the data is dipslayed in the grid with its first row selected always.Is there a way where I can remove this behaviour of the grid ? I want to display data without the first row getting selected.
Second question: few text in one of the columns in the grid is too long.And when I try to use ( AutoFitStyle=AutoFitstyle.ResizeAllCoumns) the text is not wraped.Instead it shows half of the text.How can I view the entire text ?
Please advice.
Thanks
Manjusha
Hi Thanks Found it profileGrid.Selected.Rows.Clear
Hi,
Is there a way to deselect multiple selected Rows in WinGrid without using loop logic, but using WinGrid API statements
Cheers
Hi Manjusha,
Manju00 said:Infragistics.Win.AppStyling.StyleManager.Load(Application.StartupPath() + "..\..\..\Styles\CMISDefaultStyle.isl") to use office 2007 style,it overrides my changed properties. Can I change the style.isl file by any chance ?If yes, how ?
Yes, you can open up the isl in AppStylist and edit anything you want.
Manju00 said:Also regarding second question, can I wrap the text of the column and add tootip when mouse is on that cell to show all the text data ?Is there any demo example to follow?
I'm not sure what your question is. The grid will show a tooltip in a cell whose text is not completely visible by default. So you don't need to do anything to get this to work.
Hi Mike,
Thank you so much for replying. Well for my first question: I tried reseting the properties in the Override.But since I am using
Infragistics.Win.AppStyling.StyleManager.Load(Application.StartupPath() + "..\..\..\Styles\CMISDefaultStyle.isl") to use office 2007 style,it overrides my changed properties. Can I change the style.isl file by any chance ?If yes, how ?
Also regarding second question, can I wrap the text of the column and add tootip when mouse is on that cell to show all the text data ?Is there any demo example to follow?
Thanks once again for all your help.
-Manjusha
Manju00 said:Once I am done databinding the grid, the data is dipslayed in the grid with its first row selected always.Is there a way where I can remove this behaviour of the grid ? I want to display data without the first row getting selected.
FAQ:How do I turn off the ActiveRowAppearance so that the active row in the grid does not appear selected.
Manju00 said:Second question: few text in one of the columns in the grid is too long.And when I try to use ( AutoFitStyle=AutoFitstyle.ResizeAllCoumns) the text is not wraped.Instead it shows half of the text.How can I view the entire text ?
AutoFitStyle fits the columns to the width of the grid. It does not size the columns to fit the text. What you want is the PerformAutoResize method on the column. Be sure to use the overload of this method that takes an enum and pass in AllRowsInBand.