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
1175
TextHAlign property cleared when Databind called
posted

I'm setting the alignment and I have to call Databind after working on the data a bit with this code

 ultraGrid.DataSource = dt;

 ultragrid.DataBind();

 

 

but when I do all the texthalign properties for the columns get set back to left, any ideas how to keep the alignment settings when calling databind? Thank you, Jamie

Parents
No Data
Reply
  • 436
    Suggested Answer
    posted

    Hi Jamie

    I would suggest handling the InitializeLayout event and putting your alignment code into there.

    InitializeLayout gets called every time data is set on the grid so it would guarantee your alignment gets applied every time.

     

    Hope this helps!

Children