Ask a Question related to ASP Components, Design and Development.
-
Olivier MATROT #1
Datagrid problem in ASP.NET 2.0
Hello,
I've converted an existing ASP.NET 1.1 project to Visual Studio 2005.
There is a problem with the Datagrid control. The Update & Cancel commands
are not working anymore (Edit is working).
Ive noticed that the postback generated javascript has changed since
ASP.NET 1.1. For Example in ASP.NET 1.1, the Updade shortcut
is "javascript:__doPostBack('dgReceivedHistory$_ctl3$ lbValidate','')"
In 2.0 it is now "javascript:__doPostBack('lbValidate','')".
The main differences is that there is no more reference to the datagrid in
the client ID of the control...
Any help apreciated.
TIA.
Olivier MATROT Guest
-
Datagrid problem
I have a dataview and binding to a datagrid. On ItemBound I'm adding a checkbox dynamically for each rows. It works ok but my problem is on... -
problema ultima pagina datagrid asp.net/problem last page datagrid
ciao, ho un problema. ho un datagrid in una pagina asp.net con le impostazioni di PAGING abilitate. Uso l'impostazione NUMERIC PAGE. Il problema è... -
problem in datagrid
Hi, I am facing a problem while binding dataset with more than 2Lakh records to a datagrid.The server throws an exception as follows, ... -
see this datagrid problem
my table has total 3 columns like emp_id(primay key),emp_name emp_address i m populating my datagrid at run time successfully . now i add... -
problem about datagrid
Hello all, I have a problem in using the DataGrid. In my web form, i've put a <asp:button/> button, if it is clicked, a function will be... -
[MSFT] #2
RE: Datagrid problem in ASP.NET 2.0
Hello,
I convert a simple VS.NEt 2003 ASP.NET project with datagrid control (see
code below) in VS 2005, anyway I didn't found the problem:
<asp:DataGrid id=DataGrid1 style="Z-INDEX: 101; LEFT: 96px; POSITION:
absolute; TOP: 48px" runat="server" Width="392px" Height="200px"
DataSource="<%# dataSet11 %>" autoGenerateColumns="False"
OnEditCommand="MyDataGrid_Edit"
OnCancelCommand="MyDataGrid_Cancel"
OnUpdateCommand="MyDataGrid_Update"
OnDeleteCommand="MyDataGrid_Delete" DataKeyField="ID">
<Columns>
<asp:EditCommandColumn ButtonType="LinkButton" UpdateText="Update"
CancelText="Cancel" EditText="Edit"></asp:EditCommandColumn>
<asp:ButtonColumn Text="Delete"
CommandName="Delete"></asp:ButtonColumn>
<asp:BoundColumn DataField="ID" ReadOnly="True"
HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="dd" HeaderText="dd"></asp:BoundColumn>
</Columns>
</asp:DataGrid
protected void MyDataGrid_Cancel(Object sender, DataGridCommandEventArgs e)
{
DataGrid1.EditItemIndex = -1;
DataGrid1.DataBind();
}
protected void MyDataGrid_Edit(Object sender, DataGridCommandEventArgs e)
{
DataGrid1.EditItemIndex = e.Item.ItemIndex;
DataGrid1.DataBind();
}
The Edit and Cancel works without any flaws. Is there any differences
between my datagrid and yours?
BTW, this group is for traditional ASP technology, for such ASP.NET issue,
you may post in microsoft.public.dotnet.framework.aspnet. And you may be
luck to find more ASP.NET experts there.
reagrds,
Luke
[MSFT] Guest



Reply With Quote

