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
120
How to set text vale to ultragrid cell
posted

How can i set text to cell in ultrgrid at InitializeRow(object sender, InitializeRowEventArgs e)

below is example which i tried

e.Row.Cells["dnControl"].Value = dtRows[0]["AdditionalText"].ToString() as object;

 

 

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    This code will set the Value of the "dnControl" cell in every row of the grid to the value of the "AdditionalText" cell in row 0, as a string.

    That seems like an odd thing to do, but there's nothing wrong with the code - except maybe that "as object" is unnecessary. What's the problem?

Children
No Data