Hello,
I have a UltraWebGrid control that contains a web WebDataChooser for the user to pick a country from the list and enter a Start and End Date value, simple is that.
I have isolated the control on a page with no other logic to reproduce this issue and still looses the inserted row on the second postback (have a button on the page to fire postback...)
Has anyone ran into this? Or is it a bug on the control?
Bellow is the code to initialize the control to populate the WebDataChooser and set some other settings.
Thank very much in advance!
***************************************************************************************************************
{
UltraWebGrid1.DisplayLayout.AllowDeleteDefault = Infragistics.WebUI.UltraWebGrid.AllowDelete.Yes;
}
this.SqlDataSource1.ConnectionString = CommonVariables.GetConfigSection("nhibernate", "hibernate.connection.connection_string");
this.UltraWebGrid1.DisplayLayout.Bands[0].Columns.FromKey("trvl_cntry_id").ValueList.DataSource = CountryList();
this.UltraWebGrid1.DisplayLayout.Bands[0].Columns.FromKey("trvl_cntry_id").ValueList.ValueMember = "CNTRY_ID";
Found the answer. I removed DataSourceID="SqlDataSource1" (Since I'm doing it in the codebehind...) and it worked. Now If you remove this value from the Design Mode, you will loose your manually entered columns!. Which is what I did.
Thank you.