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
2430
How do you set an unbound column value in a grid w/out marking the row as editting
posted

 

 

 

 

 

 

I have the following sample code in the load of the SS:

foreach (UltraGridRow row in ultraGrid1.Rows)

{

row.Cells[

"UnitCrit"].Value = "A";

row.Cells[

"SubSystemCrit"].Value = "B";

row.Cells[

"PackageCrit"].Value = "C";

}

Which sets the unbound columns value for each row - the unbound columns are all read only.  This works great, however each row ends up w/ a the pencil beside the row.  I want the row to be listed as "Unchanged" / "UnEditted" after loading the SS.

Parents
No Data
Reply
  • 48586
    Verified Answer
    posted

    Hello ,

     

    Please add the following code line just after you iterate through the rows collections and assign a value for the cells of your unbound column (just after the code that you are posted here):

    ultraGrid1.UpdateData();

     

    Please let me know if you have any further questions.

Children
No Data