I've been looking through some similar questions without any luck. What I'd like to do is have a gridview which for certain items shows a linkbutton and for other items shows a hyperlink. This is the code I currently have:
public void gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Da...
I have a weird performance issue with my ModalExtender using MS Ajax Toolkit, when I postback back to show the modal it takes near 10 seconds for it appear when my Gridview has about 1600 rows. If I page my Gridview to about 10 rows per page, the performance is acceptable, about a second to show..
Is this behavior normal? The speed is b...
I want to implement asp.net ajax animation (row color fades/changes from red back to white when a linkbutton is clicked) on a gridview row, and I want to do it in the code behind in c# (in the linkbutton_click event).
Is this possible?
...
I am using jQuery to cache a references to the selected row in a very large table (500+) records like this:
$selectedItem = $('.GridSelectedItem', $table);
This table is being generated by a GridView with it's SelectedRowStyle set, which gives my row the correct css class. I would like to instead use an ID in the mark up so I can loca...
When I added 'edit' column to gridview,I got this problem:
The GridView 'RegisteredList' fired event RowEditing which wasn't handled.
How I will fix it?
and Thank you very much..
...
Hello,
I’m relatively new to ASP.NET and SQL, so what I’m asking maybe a simple question for some, but not for me. What I have is a Grid View that I’m trying to populate softball hitting statistics with. In it I’ve stacked statistics yearly statistics on top of career totals at the very bottom of it. I’ve accomplished this by doing a...
I have this code so I can grab the values ind the dataset before i bind it.
can't get the dirctcast to work
dim ds as new dataset("Mytable")
gridView.DataSource = ds
Dim dataRow As DataRowView = DirectCast(ds.Tables.Item("MyTable").Rows(), DataRowView)
Dim ID_Equipamento As String = dataRow("ID_Equ...
We're using a WPF GridView that is dynamically bound to a DataTable (which in turn is the direct result of a DB query). This basically works fine and displays whatever the results from the DB query are in a nice table.
Now the problem is that some of the results contain DateTime columns, and the date displayed is always in US format and...
I have a GridView control bound to an ObjectDataSource which returns a list of objects that look like this:
public class X {
public string DisplayName {
get;
}
public string Guid {
get;
}
}
I don't want to show the Guid property in the GridView, but I need to retrieve it when an object is selected.
I co...
I want people to click on a link (generated from an asp:HyperlinkField) and have it call a method on the server rather than redirect the user somewhere. Anyone know how to do this?
Thanks,
Matt
...
How to add new hyperlink column to an asp.net gridview where columns are autogenerated? The columns are not predefined in the gridview.
...
Hello,
is there some way to force the gridview's pager to show up, even when there is only one page of data on screen?
I'm building a gridview-based control with a custom pager (w/dropdown for pagesize) and everything is working fine, except when user selects pagesize that is larger than the current row count of the grid. At that point...
Let us define that "Standard Paging" which means that paging mechanism provided my either Gridview (ASP .Net 2.0) or ListView (ASP.Net 3.5)
and
Custom paging - (Paging Control outside the control) - which does not retrieve the data from server not more than 1 Page of records (page - control page size usually 10-15records))
Would like ...
I'm trying to make all rows have a hover background except the header row.
Any tips?
I've got BoundFields, a TemplateField, and a CommandField.
Thanks
...
how do i dynamically bind different tables from DB with different columns into gridview?
Actually, i was using OleDbDataAdapter to to join the SQL statement and put in a DataTable but my question is, let says, i execute 1st SQL statement and when i execute 2nd SQL statement, the data adapter will use back the 1st SQL statement. So, i wa...
I have a datagridview that is using paging, it works perfectly fine and I have a drop down that allows the user to change the 'PageSize' property - 10, 15, 25, 50, 100, 1000 etc.
When I select a value for the PageSize that is greater than the row count for the grid the Pager is disappearing from both the top & bottom of the grid.
Anyon...
Hi....
When Binding a GridView to a DataTable, How can we Change the value displayed by a BoundField
...
I like to update just the value of my checkbox in a asp grid.
so i thought i bind the id to the checkbox ( but how?) and fire an update in code behind by clicking the checkbox.
but how can I get the ID, and where I have to bind this id to get it in code behind in the event?
Thanks
...
I'm trying to retrieve the DataTextField (The auto inputted CompanyName) so I can know which button/row was clicked.
Here's my Gridview
<asp:GridView ID="VendorsGridView" runat="server"
AllowPaging="True" AutoGenerateColumns="False"
DataSourceID="ObjectDataSource_Vendors"
DataKeyNames="ID,ModuleId" CellPadding="4" OnR...
We're planning to create a web application where users can build custom "forms," choosing which fields they would like, and how the data in those fields should be represented. Users can then fill out these forms in a DetailsView-like control, thereby creating "documents." The documents can be shown in a DetailsView, or certain fields o...