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
4695
add column to the ultragrid at run time
posted

Dear all,

In initialize the form, I have init ultragrid. Could I add one column without refreshing the whole grid, it means no clear the data in the ultragrid? Any sample code??

DataTable dt;

public void showGrid()

{

dt=new DataTable();

dt.columns.Add(dc); ...........

 DataRow dr=dt.NewRow();

.....

dt.Rows.add(dr);

this.ultraGrid1.DataSource = dt;

}

Parents
No Data
Reply
  • 71886
    Offline posted

    Hello,

    What do you mean by "no clear the data in the ultragrid"? Adding one column would not affect the data in any way - there would not be any clearing of the data. Take a look at the attached sample, I am not getting the described effect.

    GridColumnAdd.zip
Children