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
645
InitializeRowEvent after value changed?
posted

Hi, all,

I have one grid, which have one table as DataSource

e.g. MyGrid.DataSource = MyTable

After I change some values on the Cell e.g.

Row[0].Cells["Color"] = "R", then the Row[0].Appereance.BackColor = Color.RED

It works well, in InitializeRow Event

But if I change the value, then I lost the effekt,

I have called MyGrid.Rows.Refresh(RefreshRow.ReloadData, true, true)

and MyGrid.Rows.Refresh(RefreshRow.FireInitializeRow, true, true)

but both do not work, why?

Many thanks & greetings

Parents
  • 469350
    Verified Answer
    Offline posted

     I don't understand your question. What do you mean when you say you "lose the effekt?"

    InitializeRow will fire every time a value in the row changes. So your code needs to account for this. 

Reply Children