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
1280
How to set Style for GridRecordItem
posted

Hi,

Iam using Infragistics 13.1.

GridRecordItem must be used instead of UltraGridCell in 13.1.

Please let me know how to set Style for GridRecordItem.

Earlier code - UltraGridCell cellReadOnly = e.Row.Cells.FromKey(sReadOnly);

                  cellReadOnly.Style.HorizontalAlign = HorizontalAlign.Center;

Expecting your response asap. Its urgent.

Thanks in advance.

Parents
  • 16310
    Offline posted

    Hello Jeevitha,

    You can use the following:

    WebDataGrid1.Rows[5].Items[1].CssClass = "rowClass";

    This will apply the class to the cell defined by the row with index of 5 and column with index of 1. Of course you can loop through all the cells on a given row or column and apply the class.

    I hope this helps.

Reply Children