Sir,
Thank you very much. this turned out to be pretty simple.
But since i donot remember correctly, i have few more doubts in this.
i was going across few more examples from net they have mentioned as below
<asp:DataGrid ID="gridedit" runat="server" Width="100px"
DataKeyField="id" BorderStyle="Ridge" GridLines="None"
BorderWidth="2px" BorderColor="White" BackColor="White"
CellPadding="3" CellSpacing="1" AllowSorting="True"
PagerStyle-HorizontalAlign="Center" HorizontalAlign="Left"
OnEditCommand="editgrid_click" OnCancelCommand=
"gridcancel_click" OnPageIndexChanged=
"gridedit_PageIndexChanged"
OnUpdateCommand="updategrid_UpdateCommand"
Height="267px" PageSize=5 AllowPaging="true"
OnDeleteCommand="gridedit_DeleteCommand"
AutoGenerateColumns="false"
SelectedItemStyle-Width="100px">
I am using asp.net 2.0 version. and visualstudio.net 2005.
as i don ot get those events in my example, i am perplexed.
kindly help.
also i was able to find that
protected void editgrid_click(object sender, GridViewEditEventArgs e) appears in my code when in the sample code
it is DataGridCommandEventArgs.
I am thinking must be the version difference. Is it so?
sorry for a long doubt.