I've implemented a GridView based on this tutorial. It works great unless open up the search dialog or rotate the screen then scroll around.
When the search dialog and virtual keyboard appear, the drawables for each of my grid items shift. I can click on them and they do what I expect, except the drawable is wrong.
The same problem hap...
I have an existing GridView which contains the field "partner name". It is sortable by partner name.
Now I need to change the Partner Name field and in some condition make it clickable and alert() something.
The existing code is:
<asp:GridView ID="gridViewAdjustments" runat="server" AutoGenerateColumns="false" AllowSorting="True" OnS...
Is this the easiest way to insert a record with Linq to Sql when there's a many-to-many relationship, or is there a better/cleaner way? I wasn't sure why things weren't working at first, but when I added a second SubmitChanges() it worked. Why was this necessary? Would be grateful if someone could clarify this a bit!
private void Insert...
I have a gridview inside an updatepanel.
After updating the gridview, accessing the individual rows does not seem to give the right row. For example:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
{
GridViewRow row = ((e.CommandSource as Control).NamingContainer as GridViewRow);
Ro...
I'm performing a query with a sort in the Selecting event of the LinqDataSource. I'm then casting my query to a list and assigning it to the result. I'm using this data source in an ASP.NET gridview.
I can see the list is sorted but when the ASP.NET gridview does not seem to be respecting the sort order. How can I get the gridview to r...
How to bind the datasource to gridview in javascript?
...
I have a gridview that displays records from the database. I have a column "Edit" that when clicked navigates to a page where the user can edit values for that record.
I need to assign a "record_id" value with the Edit hyperlink querystring.
How can I do that?
...
Problem: I've coded a GridView in the markup in a page. I have coded a DataTable in the code-behind that takes data from a collection of custom objects. I then bind that DataTable to the GridView. (Specific problem mentioned a couple code-snippets below.)
GridView Markup:
<asp:GridView ID="gvCart" runat="server" CssClass="pList" AutoGe...
I am using a GridView inside a UserControl which has a template column for
deleting the rows. Before databinding the gridview i am attaching the
RowCommand and RowDataBound event.
I am using the RowDataBound event to set the commandargument of the delete
button. The event is being fired and works fine.
When I press the delete button...
Hi Friend
I have class A Collection
In Class A I have class b collection
Now I want to bind Class b property to gridview with use of C# binding syntax without write any code in code behind item or in gridview event
can any buddy help me.
Problem
i have a list "A" which have a list "B" within it and B have a property C now i want ...
Hi all,
I use vs 2008, windows forms, c#
I have a Collection of OracleErrors, that I gather of sqlplus.exe output:, List, and entity OracleError:
public class OracleError
{
public int NumberLine { get; set}
public string SourceFile { get; set}
public string Error { get; set}
}
Now, in my form, I use DataGridView and TextBox Mu...
I have a simple app I am messing around with its a basic Master/Details layout.
The details panel is actually a tab panel and on one of the tab panels it has a GridView. Within that grid view it shows the "current" in database information with all cells as read only.
I then have an add button that inserts a row into the GriView an...
I have been given a mockup that I do not know is possible to code in ASP.NET without being a real html and javascript wizard.
I want a GridView that when a row is selected, the selected row expands and below the selected row a panel of additional information is shown, which would also include another small GridView. The idea is this wou...
I use GridView to display thumbnails from MediaStore.
If I launch and close my application 2-3 times it crashes with out of
memory error.
System.gc() is called in onCreate of main activity.
If comment call setImageURI then no errors.
Maybe I need to explicitly clear memory somehow?
Please, help.
public View getView(int position, View...
I can't seem to get either EmptyDataTemplate or EmptyDataText of a GridView to work.
I'm fetching the GridView contents in de codebehind and attaching them with using DataBind(). I've tried having them as null and as an empty List, and in both cases the text I put into EmptyDataTemplate or EmptyDataText is not displayed.
What am I doin...
Ok, so I've got a template field in a gridview that contains just a simple button...
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Administration.aspx.cs"
Inherits="Administration" %>
<%@ Register TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://w...
So I am playing around with using a ListView instead of a GridView to accomplish a complicated goal. The ListView is helping in a lot of ways, but there is one particular bit of code I am used to using with GridView's that won't doesn't work with ListView's.
If I have to have a nice mouse hover action on my rows in a GridView, and if I ...
My question is how can I display a linq query in a gridview that has data from multiple tables AND allow the user to edit some of the fields or delete the data from a single table?
I'd like to do this with either a linqdatasource or a linq query. I'm aware I can set the e.Result to the query on the selecting event. I've also been able t...
I've a gridview bound to linqdatasource1 and a details bound to linqdatasource2 (for searching).
When I update the data on detailsview, my gridview is not updating. I've tried handling various gridview events and databinding the gridview in code but it doesn't seem to work.
...
Hi All,
I am using C#,ASP.NET
I have a Gridview for which I have provided Sorting, Edit functionality. I am not able to perform EDIT when I perform Sorting. After sorting edit is set on some other row. I think there is some problem with the index it is taking..
Can any one help me how to fix this..
Regards
sbmarya
...