gridview

Binding DataSet to GridView

I'm having a problem and I've got the feeling it is something simple that I'm not doing right. I've got a simple ASP.NET project going. I've got a DataSet that I populate from an Oracle database. The table in the DataSet has two columns: "account_code" and "account_descr". The user enters in a search term into a textbox. I use LINQ to ...

'EmptyDataText' tag in GridView wants to be shown only if data is not found

Hi, I have the following Gridview (which works) and an 'EmptyDataText' tag that should show a message on the screen if the data could not be found from the database after clicking the submit button. The problem is, the message 'no data found' is displayed on the page the moment the page is opened but I want the message to appear only if...

Asp.net - How to introduce scrolling in gridview control

I have asked this question before but did not get any correct answers. I am using Vb.net for coding. I have a grid view control in which I want to introduce a vertical scroll bar if the value from the sql query overflows. How do I go about it? I believe there is a javascript code for this ...

How do I trigger an update panel postback from a child page?

I have an update panel in a cell for each row within a gridview. The user clicks a link button from this update panel to display (using window.open()) a popup. Action is taken in that popup that updates the data contained within the aforementioned update panel. I want to trigger an update only for that update panel when the popup is c...

Gridview and Column sets

I have a Gridview that is data bound to an array of objects, with a ton of properties attached to them. The grid would need to be too wide to show all of them at once (and also overwhelming for the user), so I'd like to have some link buttons that post back to the server and show different sets of columns (all from this same data set ar...

Problem with GridView and RowStyle

Hi, I have a problem with an <asp:GridView> Rows are too tight from each other so i want to give them a fixed height. I tried using RowStyle's and AlternatingRowStyle's cssclass. In my css I have: .new_fila_exp_ini { margin:0 auto 100px auto; } But it doesn't use the 100 pixels. I think it's because it used to be a HTML table ...

ASP.NET Grid with Add, Del, Edit and REORDER Functionalities

Hi, We are building an ASP.NET application and in that we need to display Student’s information in a Grid. Now our requirement is that we need to do Add, Delete, Edit and also Rows REORDER (by Dragging and Dropping rows) student’s records through that Grid. Is it possible (All 4 functionalities mentioned above)? If so would you ...

ASP.NET 2 Gridviews share the same OnSelectedIndexChanged event

Hi, I have 2 Gridviews which share the same OnSelectedIndexChanged event. How do I get the incoming Gridview the one which fired so that I can pass that GridView to DetailsView. In that DetailsView I need to access the selected Gridview columns. Thanks In Advance. ...

Gridview - align centre the tag 'EmptyDataText' & so it's not default left of page

Hi, I have a gridview control in my c# program. Basically someone enters an email address and the data is then shown in the gridview but if no data could be found with the email address, a message is displayed using the EmptyDataText="no data available" tag but I cannot seem to style the text 'no data available' so it appears in the cen...

iPhone + gridview

Hello, Is it possible to have something like Data Grid or Grid View control in iPhone? ...

WPF Grid of Images - Best control to use?

I'm trying to convert my VB project to WPF, and one big problem I'm having is what to do about a large GridView that contains in each cell a single image. The grid needs to be very large so is the best way to do this in WPF a datagrid, or a dynamically generated Grid control, or something else? I'm not sure which controls give the best p...

Gridview design: How do I split the gridview so it does not take full width of page?

Hi, I have a gridview control in my c# program which currently has 12 columns and 2 rows (1 row being the header). Is it possible to split the 12 columns so I have 6 columns and 2 rows and then below that another 6 columns and rows so it doesn't take up the full width of the page? Thank you. My gridview: <asp:GridView ID="GridView1" H...

ASP.NET 3.5 Gridview layout for each product type in DB

I'm trying to create a simple CMS-likeb backend app that uses TreeView for categories and GridView for product display/editing. The problem that I'm experiencing lies within the fact that there is a different table structure for each product type and only one page(GridView) that displays them. That would not be so bad, as AutoGenerateCol...

System.Web.HttpException on asp:gridview pagination

I have the following <asp:gridview> with one one TemplateField. En each cell there is an image with a link and a text with a link. It has AllowPaging=True This is the gridview: <asp:GridView ID="gvExperiencias" runat="server" AllowPaging="True" GridLines="None" ShowHeader="False" AutoGenerateColumns="False" Width="650px" PageSize=...

Delete Record from GridView AND File from server in one click

I'm trying to delete a record from Gridview1 at the same time delete the corresponding image file off the server in a single click. (Each row in Gridview1 has an associated image file on the server.) To delete the record, I'm using asp:CommandField showDeleteButton="true" along with a sqlDataSource's DELETE statement. During that pr...

Asp.net - How to find all gridview in my document

I have 4 gridviews in my aspx file. I can close their footer like below if (admin == false){ GridView1.ShowFooter = false; GridView2.ShowFooter = false; GridView3.ShowFooter = false; GridView4.ShowFooter = false; } But i want to do that using "for" or "for each". Thanks for your helps already now. ...

Passing gridview values(data) to textbox fields... [C#]

Hello. For my view, In the page: 1) I have a gridview with the select hyperlink in it. The gridview data is from the SQLDataSource. 2) And, I also have a few textboxes (abt 5) - not in the gridview. What I would like to do is to use the select hyperlink to select the row that i want to edit. And when i click select, the data in the ro...

Gridview Update Generates Full Page Postback

I have a gridview within an update panel with autogenerateeditbutton=true. Modifying the gridview works fine with partial updates until the following: 1) Any validator is triggered 2) The offending control is corrected 3) Update linkbutton is clicked At this point a full page post back is triggered instead of a partial. The partial up...

ASP.NET Gridview: How can we find which column was selected in gridview ...

I have extended the Gridview making it Clickable (i.e. when ever we click on any row it is selected and a detail view is shown according to the row selected). I then added Selecting / Deselecting all the CheckBoxes in that GridView with the help of javascript. The problem now is that the page is being postbacked every time i click check...

Get display value from combobox in radgridview

Hi, I am using Telerik's RadGridView to display some data. One of the columns in this gridview is a combobox, which is populated like so: DataTable dtContractorName = A133DB.GetContractorsForCombo(true); GridViewComboBoxColumn contractorNameColumn = new GridViewComboBoxColumn(); contractorNameColumn.UniqueName = "ContractorID"; contra...