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
620
How do we reference a specific row or column in Ultra Grid Control?
posted

I am new to the Infragistics controls and trying to learn them.

Can anyone please help me How to reference a specific row or column in the Ultra Grid?

Please write me in detail as am new to these controls or direct me to the specific tutorials on this.

 

Thanks.

Tess.

Parents
No Data
Reply
  • 8607
    Offline posted

    Hello Tess,

    To reference a specific column, you can use something similar to the following code:

    this.ultraGrid1.DisplayLayout.Bands[0].
    Columns["ColumnName0"]
    this.ultraGrid1.DisplayLayout.Bands[0].
    Columns["ColumnName1"]

    ColumnName0 and ColumnName1 would be the name of your column.  You should also be able to reference it by index (a number from 0 to [# of columns - 1]).

    Please refer to this topic for more information. It's not specifically about your situation, but the code will show you how to access a column, since it sets a property on a specific column.

    To reference a specific row, you can use something similar to the follow code:

     

    this.ultraGrid1.Rows[IndexOfRow]

    IndexOfRow would be a number from 0 to (# of rows - 1).

    Please refer to this topic for more information.  Again, it should have some useful code.

    Let me know if you have any other questions about this.

     

    Elizabeth Albert
    Localization Engineer

Children
No Data