Pre-fill vaule when adding new row in ASPxGridView
I got this ASPxGridView which is populated by  a LinqServerModeDataSource.

What I want to do is when creating a new row one (or more) of the fields should have their values generated by code-behind.

 

I figured something like

    protected void ASPxGridView1_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
    {
        e.NewValues["CompanyGuid"] = Guid.NewGuid();
    }

But no luck there.
Any advices?

Thanks
![enter image description here][1]


  [1]: http://i.stack.imgur.com/NzxzU.png
Pre-fill vaule when adding new row in ASPxGridView
===

I got this ASPxGridView which is populated by  a LinqServerModeDataSource.

What I want to do is when creating a new row one (or more) of the fields should have their values generated by code-behind.

 

I figured something like

    protected void ASPxGridView1_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
    {
        e.NewValues["CompanyGuid"] = Guid.NewGuid();
    }

But no luck there.
Any advices?

Thanks
![enter image description here][1]


  [1]: http://i.stack.imgur.com/NzxzU.png