Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Shahir A. Ahang #1
Regenerating a Datagrid
All,
I am wondering if there is a way to regenerate a datagrid which has already
been bound to a dataset WITHOUT having to re-query the data source.
In my page, I have a drop-down control which is populated through a SQL
query. Once the user selects a value from the drop-down, the datagrid is
generated. I have included in the datagrid a ButtonColumn to remove
unwanted rows:
<asp:ButtonColumn CommandName="Delete" HeaderText="Remove"
ButtonType="LinkButton" Text="Remove" />
Now, when the user clicks on "Remove" for any row in the datagrid, I simply
want to remove the row from the datagrid and regenerate the datagrid without
having to make another query to the data source. Essentially I want
manipulate the existing datagrid object and regenerate it without having to
re-query the database.
Any assistance would be greatly appreciated.
Shahir
Shahir A. Ahang Guest
-
regenerating the wrapper
I've done a 'clean project' and now my /bin folder is empty and I'm unable to test my application (the wrapper is gone). Now, how do I regenerate... -
UserControl inside of datagrid - loses its viewstate when datagrid is re-bound on postback
I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it resides inside a datagrid column and i set the selecteddate property of... -
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible?
Hello, I am searching the whole Internet for a good example how to edit/update a DataGrid in a DataGrid (nested DataGrid). I know how to... -
Regenerating ASPNET Login Account
How do you regenerate the ASP_NET login account? The password got changed which hosed everything. I can no longer see my web services and need to... -
Regenerating /var/spool/cups
Hi. I have a Compaq IJ600 that was working OK with CUPS and a Lexmark driver (Z22). However I sent a pdf file to print and /var/spool/cups got full... -
Elton Wang #2
Re: Regenerating a Datagrid
Save the query result, e.g. DataTable, in Session. The retrieve it from
Session and cast to datatable (or whatever type it is).
HTH
"Shahir A. Ahang" <shahir@nospam.com> wrote in message
news:2ca3b$43418895$c61dbf94$725@msgid.meganewsser vers.com...> All,
>
> I am wondering if there is a way to regenerate a datagrid which has
> already been bound to a dataset WITHOUT having to re-query the data
> source.
>
> In my page, I have a drop-down control which is populated through a SQL
> query. Once the user selects a value from the drop-down, the datagrid is
> generated. I have included in the datagrid a ButtonColumn to remove
> unwanted rows:
>
> <asp:ButtonColumn CommandName="Delete" HeaderText="Remove"
> ButtonType="LinkButton" Text="Remove" />
>
> Now, when the user clicks on "Remove" for any row in the datagrid, I
> simply want to remove the row from the datagrid and regenerate the
> datagrid without having to make another query to the data source.
> Essentially I want manipulate the existing datagrid object and regenerate
> it without having to re-query the database.
>
> Any assistance would be greatly appreciated.
>
> Shahir
>
>
Elton Wang Guest



Reply With Quote

