|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Datagrid soes not page nor editsHi,
I try to use a datagrid with paging. Even though it shows the numbers for the following pages at the bottom of the grid, when I click on the page number it does not go there, it keeps the first page, even though there are lots of them to be seen. And when I provide an EDIT button it does not allow me to change values inside the grid. It looks like a setting I am not aware of. Thanks, Doru To enable Edit mode handle the EditCommand event.
In the edit command event handler add the following lines of code: DataGrid1.EditItemIndex = e.Item.ItemIndex; DataGrid1.DataBind(); Check out the Documentation for Datagrid events in msdn. if u disable viewstate , then i think its the user's responsibility to store the edititemindex value and set it appropriately in page load for the datagrid. if u enable viewstate then the code above is just right to enable editing. Theres lot of documentation about paging a datagrid control. Check out datagrid control newsgroup. bye Doru Roman wrote: Show quoteHide quote > Hi, > > I try to use a datagrid with paging. Even though it shows the numbers for > the following pages at the bottom of the grid, when I click on the page > number it does not go there, it keeps the first page, even though there are > lots of them to be seen. > And when I provide an EDIT button it does not allow me to change values > inside the grid. It looks like a setting I am not aware of. > > Thanks, > Doru > > NS, do you know the trick to make the datagrid to page?
It only shows the first page but it does not change to the others. How can I get the datagrid newsgroup? I could not find it. Hello,
There r 2 types of paging default and custom. Refer to MSDN documentation on paging a dtagrid control. handle the pageindexchanged event.. datagrid control newsgroup : microsoft.public.dotnet.framework.aspnet.datagridcontrol bye Doru Roman wrote: Show quoteHide quote > NS, do you know the trick to make the datagrid to page? > It only shows the first page but it does not change to the others. > How can I get the datagrid newsgroup? I could not find it. > >
detailsview, inserting new record and request.querystring
Error: Content is not allowed between the opening and closing tags for element Invalid FORMATETC structure (Exception from HRESULT: 0x80040064(DV_E_FORMATETC)) A question about Repeater control Menu displays I-Beam cursor, not Hand GridViewUpdateEventArgs not including complete set of OldValues and NewValues Web User Control object reference not set as an instance of an object EnableViewState=False creates problems with Visible & Enabled Need Help: AccessDataSource and Assigning Variables for Data (ASP 2.0) |
|||||||||||||||||||||||