Hello, i have some GridView Using LinqDataSource1 (GridView1). i want the gridview to update everytime the user make something on page so im using GridView.DataBind() in the Page_Load method on code behaind (isPostBack statement) and its working fine!!! (the user make something on view1 on Multiview and then jump to view2 to see the gridview) the problem is, when the user want to edit some row in the gridview (using the gridview commands) the data dont update!! he can only delete rows. when im removing the isPostBack statement its working and the user can update and delete but i need the isPostBack so the gridview will update his rows. any idea?????
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
CellPadding="4" DataKeyNames="userFileId" DataSourceID="LinqDataSource1"
ForeColor="#333333" GridLines="None" Width="540px" Font-Names="Arial" Font-Size="X-Small">
<RowStyle BackColor="#EFF3FB" />
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
<asp:BoundField DataField="fileName" HeaderText="?? ?????"
View Complete Post