Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
450
Utragrid
posted

Hi.

hope you can help me with this questions:

1. I have a long row on ultragrid and I want to make it shorter. one of methods to do it (in excel for instance) is to brake the text on long cell. how do I do it on ultragrid? if you have other method to deal with this (except of scroll bar) I would like to hear.

2.I want to put an Icon on some column and each time the user click there I wont to be able get the value of the ID cell on this row how do I put an icon? which event should I use?

3. I'm hiding some columns during the "InitializeLayout" event. the problem is that I'm steel seeing them before I load the datasource. what should I do? 

That is all for now. thank you for your help.

Igal.

Parents
  • 17259
    Verified Answer
    Offline posted

    1. In any appearance object you can find the TextTrimming property.

    2. Set any column style to "Button" and set the column.CellButtonAppearance.Image to your image. Handle the ClickCellButton event. To get the value of the ID cell:

    var data = e.Cell.Row.ListObject as MyDataObject;

    var id = data.ID;

    ----- or -----

    var id = e.Cell.Row.GetCellValue("ID");

    3. Why not hiding them in the designer?

Reply Children