tagged [gridview]

Change header text of columns in a GridView

Change header text of columns in a GridView I have a GridView which i programmatically bind using c# code. The problem is, the columns get their header texts directly from Database, which can look odd...

16 Oct at 11:51

GridView with merged cells

GridView with merged cells I need to display data in grid view with merged rows for some columns. Please help me to prepare a grid view in below defined format: ![enter image description here](https:/...

22 Apr at 13:10

.NET GridView - Can you right-align just one column?

.NET GridView - Can you right-align just one column? Can you easily right-align just one column in a GridView? I have this It is bound to a DataTable (generated dynamically) that has many columns. I j...

13 Apr at 03:32

How to delete a row from GridView?

How to delete a row from GridView? I am using `GridView` control in [asp.net](/questions/tagged/asp.net) 2005 [c#](/questions/tagged/c%23) using . How can I delete a particular row from `GridView`. I ...

6 Jul at 06:41

CheckBoxField columns in ASP.NET GridView are disabled even if ReadOnly set to false

CheckBoxField columns in ASP.NET GridView are disabled even if ReadOnly set to false I have a GridView with two CheckBoxField columns. They both have ReadOnly property set to false, but html code gene...

30 Jul at 09:15

How to hide a column (GridView) but still access its value?

How to hide a column (GridView) but still access its value? I have a GridView with a `DataSource` (SQL Database). I want to hide a column, but still be able to access the value when I select the recor...

27 Oct at 10:24

How to render decoded HTML in a (i.e. a <br>) in GridView cell

How to render decoded HTML in a (i.e. a ) in GridView cell I'm binding a GridView to an LINQ query. Some of the fields in the objects created by the LINQ statement are strings, and need to contain new...

18 Mar at 12:56

GridView - Show headers on empty data source

GridView - Show headers on empty data source In C# how do I still show the headers of a gridview, even with the data source is empty. I am not auto generating the columns as they are all predefined. C...

2 Jul at 16:23

How to set focus on a particular row in a datagrid/gridview?

How to set focus on a particular row in a datagrid/gridview? I have a datagrid/gridview. I'm populating the grid with 10 rows initially. On a button click every time,I'm keeping on adding 10 rows to t...

26 Dec at 13:1

Get value of GridView Cell in RowCommand

Get value of GridView Cell in RowCommand I need to get the value of a cell from the RowCommand event, but the value is not in the PrimaryKeyNames parameter of the GridView. Currently I have: This does...

3 Feb at 12:17

GridView RowCommand event not firing

GridView RowCommand event not firing I have a GridView that looks something like this: ``` ...

13 Dec at 19:6

How does the W10 News app stretch the items in the gridview?

How does the W10 News app stretch the items in the gridview? I'm trying to create a gridview like in the default News app in Windows 10. As far as I know I have to set the ItemHeight an ItemWidth for ...

7 Sep at 10:14

Putting GridView data in a DataTable

Putting GridView data in a DataTable I'm trying to save a `GridView` to a `DataTable`. I have code which should in theory do it but I keep getting this error: > Column 0 doesn't exist Here is my code:...

9 May at 17:4

Export gridview data into CSV file

Export gridview data into CSV file I have a gridview control in ASP.Net 2.0 and i need to export this gridview data into CSV file. I have bind this gridview with the dataset.After binding the dataset ...

13 Jul at 05:56

How to get GridView values from asp:BoundField?

How to get GridView values from asp:BoundField? I have a `GridView` that retrieves values from a `DataSource` that joins two tables, and I need to get those values in the code-behind and pass them as ...

7 Apr at 22:55

GridView bound with Properties of nested class

GridView bound with Properties of nested class I have an object map similar to what's listed below. When I try to bind the properties of NestedClass in a GridView I get the error: > "A field or proper...

11 Jan at 05:46

Get the cell value of a GridView row

Get the cell value of a GridView row I am using the GridView - `AutoGenerateSelectButton = "True"` to select the row in order to get the Column 1 cell value. I have tried: And it writes the "Cell Valu...

3 Mar at 21:48

Retrieve value from DropDownList in nested GridView on RowCommand

Retrieve value from DropDownList in nested GridView on RowCommand I have a nested GridView(`GvMP_Summary_Items`). Each row contains a DropDownList. The DropDownList is bounded on the RowDataBound even...

Sorting DataTable string column, but with null/empty at the bottom

Sorting DataTable string column, but with null/empty at the bottom I need to sort a DataTable or DataGridView by a column that is a string value, but with null/empty values at the BOTTOM when sorting ...

CommandArgument in the Gridview

CommandArgument in the Gridview I have a gridview like this. ```

13 Dec at 18:7

How to call javascript function in item template when using gridview

How to call javascript function in item template when using gridview I am trying to call a javascript function which will set forecolor and backcolor of a control when the control is loaded But this f...

28 Jul at 11:10

conditionally show hide asp.net Gridview column

conditionally show hide asp.net Gridview column This is how I navigate to `myPage.aspx` , And I have a gridview in `myPage.aspx` ```

5 Jul at 04:47

colspan gridview rows

colspan gridview rows I have added rows into gridview. There are 20 columns in gridview. How can i do a colspan-like feature in gridview which could show me 2-3 rows under 2-3 columns and remaining as...

ASP.NET Setting width of DataBound column in GridView

ASP.NET Setting width of DataBound column in GridView I have a GridView which uses BoundField for columns. I am trying to set a maxwidth for my `UserInfo` column. I have tried many many ways but non o...

1 Feb at 07:24

JQuery GridView control

JQuery GridView control Does anything like this exist? What I am looking for is a control that is going to be client-side, with the Edit, Cancel row capabilities of a GridView. I wish to use it to col...

9 Apr at 17:46