Все вопросы: [gridview]

849 вопросов

похожие теги: android-gridviewgridview-sorting
0
голосов
1ответов
88 просмотров

What do you call the first column of a .NET WinForms GridView?

What do you call the first column in a GridView? This is the leftmost non-databound column. Is it possible to prevent this column from being rendered?

2
голосов
2ответов
3079 просмотров

ASP.NET - How to wrap GridView Delete in try catch or stop a row delete

I want to be able to wrap a gridview row delete in a try catch and display a nice error message on the screen or try to stop the delete from happening in certain circumstances. At the moment, I am getting foreign key violations in the database. So I either want to stop the delete from happenin...

7
голосов
7ответов
11266 просмотров

How do I center a GridView in its LinearLayout parent?

GridView is not behaving like it is supposed to. This screenshot shows that the GridView (in landscape mode) is flushed left. I want it centered. This is the XML layout for the GridView. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/templatel...

0
голосов
2ответов
6541 просмотров

gridview sorting based on columns

Hi i have a grid view in this i am displaying few columns called name, phone, information and date. My requirement is if I click on the columns header then it should be sorted, my aspx code is here... <asp:GridView ID="sorttest" runat="server" AllowSorting="true"> <Columns> ...

0
голосов
1ответов
286 просмотров

How to color item text in GridView for non-selected lines only?

I have a GridView with image buttons for selecting rows. I am using an OnRowDataBound event to color selected rows Blue: e.Row.ForeColor = System.Drawing.Color.Blue Now that works great as long as I don't set a color either in the CSS stylesheet or on the grid Items themselves. If I do that...

0
голосов
1ответов
1981 просмотров

Gridview edit column position

I would like to know how to change the edit column position after setting AutoGenerateEditButton="true". By default it is displayed always on the left as the 1st column.

0
голосов
1ответов
2401 просмотров

asp.net Gridview: buttons accessing data for each row

I'm trying to code a Gridview that has a button on each row that when clicked will expose that particular rows data for use, but I'm not sure how the data would be passed. The Gridview: <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID...

3
голосов
5ответов
5669 просмотров

Selecting rows in Tablesorter

I user Tablesorter a jQuery plugin (I am sure other know about it) in my project. I need to add a feature where in when users click on a row, it gets selected . I tried the following code but, its not working out. $('#myTable tr').click(function(event) { $(this).addClass('selected'); }); ...

0
голосов
2ответов
1654 просмотров

JQuery CheckAll in GridView

I have a GridView on an .ascx. I have an asp:Checkbox CheckAll checkbox in the header template for a column and then a checkbox in the ItemTemplate. I would like to add the functionality so that when I check the checkbox in the Header, it will check or uncheck all of the checkboxes in the GridV...

0
голосов
1ответов
944 просмотров

grid needed to perform edit, delete, add new row and DragDrop rows in asp.net 3.5

Please suggest me a grid which performs the Add, Edit, Delete and DragDrop rows. Is our normal GridView suffice this requirement? or should I go for DevExpress Grid or some other third party grids? Thanks in advance

0
голосов
2ответов
3282 просмотров

ASP.NET GridView with LinqDataSource: Remember Sorting, Paging and WhereParameters state

I'm using a standard GridView with a LinqDataSource. The user can sort and page through the grid using the stock standard stuff. Searching criteria (WhereParameters) can also be used to filter the results. This works great, but the state is obviously lost whenever navigating away from the page. ...

2
голосов
1ответов
777 просмотров

ASP.NET GridView TextBox Problem

I have a gridview in a page and it have a template field: <asp:TemplateField> <ItemTemplate> <asp:TextBox ID="txtReturn" runat="server" Text="0"></asp:TextBox> </ItemTemplate> </asp:TemplateField> And I...

0
голосов
1ответов
1618 просмотров

Adding Rows to Gridview without using databind

I have a gridview inside of a listview predefined in the xaml: .... <ListView x:Name="listPriority" IsSynchronizedWithCurrentItem="True" Margin="0,30,0,4" BorderThickness="0,0,0,0"> <ListView.View> <GridView> <GridViewColumn x:Name="grvPriorityColumn" Width="140...

0
голосов
1ответов
1534 просмотров

Find Duplicate Values in the Gridview using Javascript

I have a following requirement. I have a Gridview contains two columns Model Name | Model Description Model A | Model A Desc | Edit Update Cancel Model B | Model B Desc | Edit Update Cancel Model C | Model C Desc | Edit Updat...

1
голосов
2ответов
5228 просмотров

Asp.net GridView ignore the CellSpacing attribute

I am having some difficulties with a GridView here, a client asked me to put some space between the cells, typically I would do CellSpacing="5" however it seems it is not working, I tried a few stuff and everything is rewritten... Code I tried : <asp:GridView ID="gvShoppingCart" runat="serve...

1
голосов
2ответов
371 просмотров

Link Two ObjectDataSource

My problem scenario is as follows: I have one GridviewA bound to a objectdatasourceA. When I click on a GridviewA row, I want another objectdatasourceB to pick the ID from the GridViewA and then fetch records for GridviewB. This is like masterdetail. Can i do this and how to use javascript/jque...

2
голосов
4ответов
8792 просмотров

ASP.NET Gridview: Get the PageIndex from the selected Row

I need the functionality to highlight the edited row in a gridview, so on RowDataBound of the gridview i check which one's the one that has been edited and change the css style. There is one small problem, the change could make the row appear on a different page. How do i get the PageIndex from ...

0
голосов
1ответов
1301 просмотров

View source not showing current gridview. What's happening here?

Using aspnet, c# 3.5, developing in vs2008. Using IE7. I have a web page consisting of a dropdown list and a gridview. The contents of the gridview are mostly dynamically generated in the code behind. When the app runs, the default value for the contents of the gridview are displayed on the p...

0
голосов
1ответов
2289 просмотров

Firing SelectedIndexChanged event for a Gridview in ASP.net asynchronously by clicking anywhere on the Row

I am instantiating/using the gridview only programmatically ie code behind only. Also, the grid is bound to a datasource, and I am only showing select columns from it by hooking rowdatabound event of the gridview. Please suggest a way for doing it WITHOUT design view(aspx). EDIT: Is there any ...

1
голосов
4ответов
3371 просмотров

Getting cell value after selecting a row

I have a Gridview with values MachineGroupID, MachineGroupName, MachineGroupDesc and so on.. I have a delete command in the gridview, when I clicked is supposed to delete the selected row. Now i have a code which tells me which row is selected. protected void LinkButton1_Click(object sender, ...

0
голосов
2ответов
615 просмотров

make changes in gridview without using database

I have a gridview... which is not using a database. I have these 3 rows of which are fixed and when the user clicks on the add button a new row is created . The grid view looks like this employee department ||timeorwork ||Delete admin |||[dropdownlist] ||[dropdownlist] button // s...

2
голосов
1ответов
2170 просмотров

Programmatically replace GridView cell contents on load

I am working on a program in WPF for the first time. I have a ListView in GridView mode displaying data from a bound dataset (which is grabbed from a database). In my database, "date of birth" is not a required field. As such, any record without a dob had the value set to DateTime.MinValue. On e...

1
голосов
2ответов
105 просмотров

Keep data with specific value on top when sorting a gridview

i have a gridview with information about documents: name, document type (policy, guidelines, forms, etc), category, etc. I want to sort the gridview alphabetically (name) and by document type, but always having the 'policy' above the other document types when document name is the same. How do I d...

10
голосов
3ответов
13768 просмотров

Is there a way to insert Html into a gridview row?

Using aspnet 3.5, c# - Is there a way to insert Html into a gridview row?

1
голосов
3ответов
11571 просмотров

gridview paging using dataset

I have an ASP.NET web app (C#) where I get some information from a datasource and display it in the the gridview. I wanted to enable paging, but for some reason, paging doesn't work. I researched a little online, and I found that paging is done differently if a dataset is used. When I click on a ...

0
голосов
1ответов
2820 просмотров

Jquery selectors - filtering ASP.NET gridview

I've got a gridview and some checkbox controls, with the idea that only the rows with the corresponding checkboxes are shown. I've composed this mess of JQuery/javascript which actually does work but offends my eyes, and performs terribly. Is there are a simpler and/or faster way of using the c...

0
голосов
2ответов
2179 просмотров

Controlling Checkboxes inside a Gridview Row in ASP.NET

Not really sure how to handle this issue but here goes... I have a gridview with two checkboxes for each row, below is an example of the item template: <ItemTemplate> <asp:CheckBox ID="MasterCheckbox" runat="server"/> <asp:CheckBox ID="ChildCheckbox" runat="server" /> ...

1
голосов
2ответов
164 просмотров

About ASP.NET Gridview

Hi I need help implementing a logic using Gridview control in c#. I have a gridview and it has many rows. Each row has a Button to click for the user. On each button click i am updating the selected record in the database. Now once row is updated, I need to hide that button to prevent reaction j...

0
голосов
1ответов
2202 просмотров

delete from gridview using stored procedure

Hi i have a gridview, linked to a sqldatasource. I have added a stored procedure to delete from multiple tables, and then enabled deleting on the gridviews smart tag. When i click the delete button i get an error message, "Object must implement IConvertible". I read that it is a problem passing ...

3
голосов
1ответов
1751 просмотров

GridView Page in UpdatePanel dropping 1 row

I have a basic gridview with paging enabled. I have 11 rows in my database and the gridview's page size is 10. When I come to the page, it shows 10 rows, and in my pager, it shows me on page one with a link to a second page. When I click on the second page, it refreshes the page and goes to page ...