Ok, please bear with me as I can be a bit of a wood duck at times...
I have a gridview in asp.net that will be pulling back many thousand of records. This is all well and good apart from the performance aspect of things. I am binding my Gridview to a dataset and this pulls back every record in the query. I want to change this so that th...
Hi,
I'm building a GridView control which encapsulates a child gridview. The child gridview holds a div tag which is displayed when the user selects a row in the parent gridview. However, even though the contents is hidden i.e. the div tag, an extra column is added - how do I get rid of the extra column. In the tutorial it states tha...
I need to create a table structure that will automatically create columns for a collection of objects (the structure of which is pretty flexible). The data in the table will only be read only so I've been looking into using a GridView but can't figure out how to automatically generate the columns - has anyone got an example or a URL expl...
I'm opening a modal dialog for IE6 and above using the following javascript.
window.showModalDialog(
'SelectUser.aspx',
null,
'status:no;dialogWidth:500px;dialogHeight:220px;dialogHide:true;help:no;
scroll:yes;toolbar:no;title:no;resizable:yes;location:no;menubar:no;'
);...
Hi,
I have a child GridView which is displayed when a user selects a row in a the parent GridView. What the user can do is select items in the Gridview, which then go off to a results page. However, what I have is a button on the page which when clicked shows the user what they have selected. The problem is that when the button is pr...
currently I am using few generic functions/methods in gridview for Sorting Images and Getting Header Row in TH and merge Header Row.
http://geekswithblogs.net/ram/archive/2006/07/13/GridViewGenericSortImagesFunction.aspx
http://marss.co.ua/MergingGridViewHeaderColumns.aspx
problem is i have to write these function for every Grid. I loo...
Hey guys,
I've browsed what SO gives me as possible answers but I can't find a solution to my problem.
I have a gridview which should allow rows to be in edit mode. this more or less cancels out the use of a repeater I think.
The thing is, the header is "special". It should have multiple rows with some cells spanning multiple columns....
Hi all,
I want to display all the data in gridview which i am inserting in runtime. For that i have written code but getting this error.
"Both DataSource and DataSourceID are
defined on 'GridView1'. Remove one
definition."
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
BindData(...
I've got GridView with selection enabled. Some columns in GridView have CssClass set, setting their background color. Also, there is SelectedRowStyle defined in GridView.
Problem is, after row is selected, it's background color is changed as defined in SelectedRowStyle, except columns with own CssClass set. Their background color remain...
I am using Asp.Net Dynamic Data. I want to remove delete button from List and details page. I dont want to remove it from mark up. Is there any way to remove delete button based on entity and without adding custom pages?
...
Hi all,
Thru radio button i am selecting the data from gridview. Here all radio buttons are selectable at a time. Actually it should not happen at a time user can select only one button which i could not do. My second problem is when i am selecting particular radiobutton that details should be displayed in text box. I have Itemid, ItemNa...
In ASP.NET Gridviews generate a table which generates a parent div container. This can break CSS layouts since there is no way to attach styles to the generated div. Is there a way to prevent the div from generating or a way to apply a style to it?
This was asked and marked as resolved here but MS just said that the div is needed for t...
Hi,
I have a parent GridView that had a child GridView (code below), how do I get the value of the child gridview checkbox? And also, how do I save the state of the child gridview, i.e. if it is displayed or not? This is the function that is fired when the button is pressed that reads through the parent grid seeing which publications ...
Hi There,
I have a grdiview and a button on my page that export the content to an Excel file,What I would like to add is to have companies logo,Title,Today's Date and Time as well.
Any Idea? Thanks in advance
...
It seems to be impossible to change GridView .Caption after it has been set once.
Once I set caption and then change it within postbacks, in the code all seem to be ok, on page PreRender, GridView PreRender and wherever
I have no idea what to do - on page (and GridView also) PreRender event while debugging the .Caption is proper, b...
Is it possible to grab specific elements from a database via the entity framework and display them after clicking a 'Find' button on the page?
Lets say there is a textbox and you have to enter a number. Upon entering a certain number, a certain database table's column will be searched for that number and all instances will be returned ...
I'm trying to set up my very first WPF ListView/GridView and having trouble with styling the column headers. I currently have 3 issues. Here is a view of the GridView as it is right now:
I want to remove the little white vertical borders that seperate the column headers.
I want to remove the mouseover effect. This screenshot has t...
Hi, I have a weird problem. My query in C#/ASP.NET returns results 5 times. I tried brakepoint-ing but I can't find the error. I have 2 related tables. One table loads on PAGE_LOAD and when the user click on a cell, it shows the content from another table related to that cell. It's very simple.
//PAGE LOAD
protected void Page_Load(o...
Is there a way to set a vertical border on a WPF GridView?
The following works great for some nice horizontal borders. Is there a good way to add vertical borders to the GridView that lives inside this ListView?
<Style x:Key="ListViewItemBase" TargetType="{x:Type ListViewItem}">
<Setter Property="BorderThickness" Value="1" />
<Set...
Hi,
I got trouble when I want to add my custom control with an gridview and an updatePanel.
The javascript function is never added to the page even if I write it directly inside the RenderContent method.
The page is :
UpdatePanel
GridView
EditItem
CustomControl
...