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
400
To make the Rows as Editable in ultragrid using c#
posted

Hi,
I'm having the ultragrid with the following data
id name
1 aaa
2 bbb
3 ccc
4 ddd
5 eee
6 fff
. .
. .
. .
.
. .
.
. .
. .
1000(1000 rows are present)

here i want to edit the rows
for example row with id (5),name(eee) need to edit to id=6 ,name=bla bla
i have tried with this this code
this.ultraGrid1.Rows[0].Cells[0].Activation = Activation.Editable,but it didn't work.
an deven i tried this:
UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns["CustomerID"];
column.CellActivation = Activation.ActivateOnly;

and one more thing is that ,
i want to add a new row to the ultragrid on buttonclick event,so i wrote this code
private void ultraButton2_Click(object sender, EventArgs e)
{
this.ultraGrid1.DisplayLayout.Bands[0].AddNew();
}

this code works fine on adding a new row but problem here is ,on click of buttonclick event, unable to add data in to the row,(as the new rows created are in readonly mode)
so please help me how to add data into the new row and to edit the rows

Thanks in advance

Parents
No Data
Reply
  • 23930
    Offline posted

    Hi,

    I am just checking about the progress of this issue. Let me know if you need my further assistance on this issue.

    Thank you for using Infragistics Components.

Children
No Data