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
3338
get rows in ultrawebgrid..
posted

I have some code that i use in a winforms application.

  For Each r As Infragistics.Win.UltraWinGrid.UltraGridRow In ParameterGrid.Rows
                    r.Cells("PromptText").Value = r.Cells("ParameterFieldName").Text

 

I am trying to convert this to work on a ultrawebgrid in an asp.net application

using 9.2 with latest sr targeting net 2.0

 

can someone help me out with the correct syntax?

Parents
  • 7305
    Verified Answer
    posted

    Daryl,

    In ultraWebGrid you can handle InitializeRow event and use a similar code as you had to change the value such as:

    protected void UltraWebGrid1_InitializeRow(object sender, RowEventArgs e)
        {
            foreach (UltraGridCell cell in e.Row.Cells)
            {
                e.Row.Cells.FromKey("PromptText").Value = "CHANGED";
            }
        }

    Let me know if it worked for you.

    Sincerely,

    Sam

Reply Children