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
85
what is the equivilant of the the Repeater.ItemDataBound event??
posted

The InitializeRow event fires every time the row is "refreshed" in some way, not just when data is bound. 

In my scenario I have a column that, dependant on an object property, will display either a button or a string.  When that button is pressed, i perform some action and upon success hide the button and present the user with a timestamped message in the same cell.

This causes the InitializeRow event to be called a second time.  I've handled it, but it feels like a hack that will cause invisible headaches for the developer coming behind me.

  • 20872
    Verified Answer
    Offline posted

    Hello K,

    If I understand your requirements correctly - executing your desired functionallity in the InitializeRow event than you could try an approach that looks like the following:

    void ultraGrid1_InitializeRow(object sender, Infragistics.Win.UltraWinGrid.InitializeRowEventArgs e)
            {
                if (!e.ReInitialize)
                {
                    //execute your code here
                }
            }

    Please feel free to let me know if that is not what you are looking for or if I misunderstood your needs.