Group:  ASP.NET ยป microsoft.public.dotnet.framework.aspnet.datagridcontrol

Threads Replies Last Post
45 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  
System.Data.OleDb.OleDbException: Syntax error in FROM clause
Please Help I am doing a project for college in asp.Net Web Matrix but my coding keeps on giving error (System.Data.OleDb.OleDbException: Syntax error in FROM clause) Help Please!!! public class CarCB : Page { protected DropDownList makeList; protected DropDownList modelList; protected DataGrid grid; OleDbConnection conn; ...
1 12/25/2008 2:39:47 PM
Why performance of DaraGridView is TOO BAD?! What to do to fix it?
Hi. Please help me. We are thinking should we migrate to .NET or not - making experiments, prototypes, etc. And suddenly I faced very strange problem with DataGridView in .NET - IT IS EXTREMELY SLOW! I loaded only 700 data rows into DataGridView but it terribly slow. :-\ In our applications we expect about 100.000 rows of data in a GUI, so if DataGridView is almost die on 700 data ro...
1 12/16/2008 12:14:05 PM
Publishing SQLExpress local file based database how to?
Visual Studio 2008, I have a local database in the file system. I want to publish it so I start the Publish to Provider Wizard. I choose my database and click next, I get : TITLE: Microsoft SQL Server ------------------------------ This wizard will close because it encountered the following error: For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server+Database+Publ...
1 12/6/2008 10:22:00 PM
Automatic Page Numbering
I have a datagrid where I've turned on the paging. So it displays and everything is great. Problem is it will show pages 1 through 10 and you can only go to the next set by clicking the ... Ideally I'd like to have it so that if you click on page 9 it would show 4 - 14. Can this be done automatically or do I have to do it myself? TIA - Jeff. ...
1 12/5/2008 8:43:24 PM
Hyperlink in a gridview
I have pdf file name as a value in DataTextField and am using an A Link as follows which works fine: <asp:HyperLinkField DataNavigateUrlFormatString="<a href= {0}>{0}</a>" DataTextField="MovePDF" HeaderText="PDF" /> I want to site the pdf files in a sub-directory eg - "Docs". How do I include that path? With thanks in advance....
5 12/3/2008 4:49:03 PM
onrowcommand fires two times.
Hello, I have a weird problem that I didn't solve. I've a gridview with one edit and one delete button in each row, of type ButtonField, type image. EnableViewState is set to False, AutoEventWireup set to true or false. Everytime, the callback function defined by onrowcommand fires 2 times. protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { int set...
1 11/25/2008 4:20:03 PM
Formatting Gridview/Excel Column as "Special"
Hi, In asp.net 2.0 I am exporting a gridview to excel using this code: Dim resp As HttpResponse resp = Page.Response resp.ContentType = "application/download" Page.EnableViewState = False resp.Charset = String.Empty resp.AppendHeader("Content-Disposition", "attachment;filename=Report.xls") Dim tw As New System.IO.StringWriter Dim hw As New System.Web.UI.HtmlTextWriter(tw) gv.All...
1 11/25/2008 3:23:01 PM
Two Gridviews alongside each other
I am trying to position two gridviews alongside each other on asp.Net page. What method should I use? Have tried <asp:Table> with not much success. With thanks...
2 11/22/2008 8:51:00 PM
Datagrid Export To Excel - Error
Hi, I'm receiving an error message while trying to export an asp.net datagrid to an .xls document. If I run the code locally I don't experence the error message, only in the live web application. If anyone has ever experienced this problem, I would be very gracecious for some advise. Thanks, Mike ERROR: Internet Explorer cannot download File.aspx from xx.xxxxx.net CODE SNIPPET: ...
1 11/11/2008 2:56:00 PM
SqlDataSource Control: Problem in Configure Data Source
I am coding a website using SQL Server 2005. If I write code using SqlConnection, SqlCommand, SqlReader etc. everything works fine. When I wanted to use GridView, DetailsView and SqlDataSource in order to save typing, problem surfaced at the very beginning when I clicked the smart tag to configure data source. After I specified the connection string and clcked next, there came an error mes...
1 11/6/2008 2:47:58 AM
GridView Update Event Not Firing
Hi. I have a strange behavior from GridView. When I click on "Edit", it goes in to the edit mode. After modifying the data, I click on the "Update", but the commandName is "New". I expected "Update". What am I missing here besides a little brain? Thanks. Be Cool....
2 11/5/2008 8:29:05 AM
DataBound radiobuttonlist in a gridview cell
I would like to place a radiobuttonlist inside of a gridview cell. The gridview is using a iList as it's datasource. In that gridview, in the second column i have a itemtemplate that holds a radiobuttonlist. I need to change the radiobuttonlist to not hold static listitem values and text anymore. The iList that the radiobuttonlist will be bound to is called oSurveyAnswerKeys with ...
2 10/21/2008 1:04:24 PM
custom sorting in gridview
Hi I want to implment cusotm sorting in gridview... Ive a dropdown box on my page where ive all the fields(columsn) to be sorted.. whenever hte user selects the value in the dropdown , the gridview should be sorted... As of now, whenever user selects a value in the dropdown , Im rebinding the grid with sorting applied.... but this is hittng the page performance... so Im thinking to ge...
1 10/21/2008 7:39:01 AM
how to put auto generted serial number in datagrid...!
i want to put auto generated serial number in first column of datagrid...! so tell me where i put the code of autogenrated of serial number and remember i dont use auto nmber field of my database...! <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb" %> <html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>DataGrid...
1 10/8/2008 2:49:46 PM
Performance issues with Retrieving data
I have a table with over 1.3 million rows. I am retrieving only 20 at a time using the with - over clauses In query analyser, the data is retrieved in under a second. When retrieving using the data adaptor.fill or datareader to retrieve the data it takes over 24 seconds. public System.Data.SqlClient.SqlDataReader List1(int PageIndex, int PageSize, string ItemName, string UserIDs, Date...
2 6/30/2007 10:35:47 PM
gridview with blank rows
I have a gridview that I am binding dynamically, and the gridview does have records in it but they are all blank except for the "Select". What am I missing: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="true"> </asp:GridView> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try Call BindGrid catch...
1 6/27/2007 2:51:46 PM
Another Paging Problem
I'm fairly new to c# and Visual Studio. I've been having what seems like a common paging problem. When I try to change pages (even just from the first page to the second), the error comes up: Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. I have found many solutions on different websites, but they all have to do with deleting entries on a page and then...
1 6/25/2007 7:42:10 PM
Diabetic Recipes and More...
Hi Cookers, Welcome to our new website, cookersworld.com. We have expanded the content links to ad Mr. Emeril Lagasse's fine recipes along with recipes for diabetic's. The website is full of great links from our partners. We have links to free cookbooks and more. Please stop by and support us. Visit all our links and choose the best recipe for you or your family. We look forward t...
1 6/24/2007 8:26:52 AM
DataGrid Focus
Here is my problem. I have a datagrid that when you click on a row, it goes into edit mode and depending on where I clicked it the focus is on that control using Control.Focus(). I also have code so if I keep pressing tab it will create a new row and focus on the newly created row. Recently I put the same datagrid into an asp.net ajax update panel and now the focus is outside of the u...
1 6/22/2007 3:56:00 PM
Edit datagrid control question
Hello All I have a gridview or detailsview grid (I am trying to do the same thing in both) with Visual Studio 2005. I use a datasource to connect to the grid/details view and another datasource to populate a drop down list when the grid is in Edit mode. I would like to keep the value already in the databaserecord and not overwrite the record if the user doesnt make any change by using...
1 6/20/2007 5:23:16 PM
GridView Hide empty row (vb)
Hi, I have read several resources on the internet and MSFT newsgroups on how to insert data using the footer in the datagrid control. To solve the empty data set problem, I added a blank row in the datasource select statement, using the union command to create the additional blank row, making the footer visible. My last step is where I am stuck. I need to hide that "blank row" that ...
2 6/20/2007 7:36:01 AM
Iterate through the controls of a ItemTemplate
Hi, I have a datagrid with boudcolums and templatecolumns. The templatecolums have a ItemTemplate that contains controls. I would like to iterate through these controls. I cannot use the FindControl method because I dont know the ID of the controls. I don't even know the type of the controls. I m writting a generic function to iterate throuh th controls and get back with their types, ID,...
3 6/18/2007 7:05:02 PM
Paging
I'm rather confused / frustrated with paging. It seems impossible. I have a database with X rows in a table, and I want to present a grid that shows a paged view of just 10 items, and let the user navigate through he entire table 10 items at a time. Simple enough, right? If I set AllowPaging to True, either by the grid's design-time properties or through code during Page_Load(), but NO...
2 6/17/2007 2:57:54 PM
Gridview, Command columns & images
What's the secret to getting images to display in a command column? I selected Show Smart Tag, Edit Columns, select the CommandField, click on the .... for the EditImageUrl, select a gif file, click OK and run the program -- no image. I tried taking out the "Edit" in the Edit Text, no image. I know the image is okay because if I put it in the HeaderImageUrl, it displays fine. Any ...
1 6/14/2007 2:26:08 PM
GridView issue when export to excel
Hi there, I am using this code that I have found in the internet to generate excel output. Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=kirim.xls"); Response.Charset = ""; // If you want the option to open the Excel file without saving than // comment out the line below // Response.Cache.SetCacheabilit...
8 6/13/2007 4:56:00 PM
45 Pages: 1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26  27  28  29  30  >>  

Home | Search | Terms | Imprint
Newsgroups Reader