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
90
from activecell how to get it is last column or not
posted

Hi all,

i am using ultra grid. i need to check whether active cell is last column of ultragrid or not. please help out for this

Parents
  • 1700
    Offline posted

    Hello Gurumurthy,

    In order to access the active cell of the grid, you can use the ActiveCell property, which will return or set the active cell of the grid. After that, its column index should be checked if it is equal to the index of the last column, the code should look similar to this:

     var cell = this.ultraGrid1.ActiveCell;

     if (cell != null && cell.Column.Index == this.ultraGrid1.DisplayLayout.Bands[0].Columns.Count - 1)

                {

                    //your custom logic

                }

    Please let me know if you have any questions.

    Regards,
    Ivan Kitanov

Reply Children