hello there,
my question is as follows:
// i use the grid to display some data from xml
DataSet ds = new DataSet();ds.ReadXmlSchema("c:\\CustomerOrders.xsd");ds.ReadXml("c:\\CustomerOrders.xml"); ultraGrid1.DataSource = ds;
// very simple of course
how i can made all cells in the grid as readonly?it is a select-box in this case and i dont want the user can make some edits.
i cant find the property for that :(
thanks in advancesebastian
Have a look at this knowledgebase article:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6156
Nick
hello nick
yes it helps thank you.
an another nice property for me was the CellClickAction->SetTo: RowSelectThe Default Setting for Active Cells looks like the user can edit the cells..not good for me.
my last question(currently :D ) is how can i made some columns invisible.. i have somedatasets with subsets and the keys like primary and other are not important for the user andi will hide this info. exists a simple columns collection for all columns in the grid ?
thx againSebastian
Yes you can find the columns collection at yourGrid.DisplayLayout.Bands(0).Columns
When working inside the InitializeLayout event e.layout.bands(x).Columns will get you there.
There is a hidden property and as well you may find visibleposition useful to move the columns around the screen in another arrangement other than the order in your datasource.
You can in general think of yourGrid.DisplayLayout as the UI side and yourGrid.Rows as the data side.
Have fun with the grid it is very powerful and the help here from everyone on this forum is very good.