[quoted text, click to view] > Its just a pain to sit with such a simple problem for so long....Really
hope
> you have some inputs, or request some codesamples.
Now i made an even simpler test. Create a UserControl, drag Datagrid to it
put his code in the UserControl.
private void Page_Load(object sender, System.EventArgs e)
{
if(!IsPostBack)
{ DataGrid1.DataSource = ws.GetAllRapportNames();
DataGrid1.DataBind(); }}
private void DataGrid1_EditCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{ DataGrid1.EditItemIndex = e.Item.ItemIndex;}
private void DataGrid1_CancelCommand(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{ DataGrid1.EditItemIndex = -1;}
}
Now i have an emtpy form and drag the userControl to it and Run the Proejct.
The datagrid shows perfecttly...!"#!" But i have to click twice on the Edit
button, (and cancel).
Now what is wrong on the user control? I have tesetet this mini test on 2
computers using ie6.0.
Regards
Anders