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...
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:/...
- Modified
- 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...
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 ...
- Modified
- 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...
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...
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...
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...
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...
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...
GridView RowCommand event not firing
GridView RowCommand event not firing I have a GridView that looks something like this: ``` ...
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 ...
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:...
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 ...
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 ...
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...
- Modified
- 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...
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...
- Modified
- 26 Jan at 10:28
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 ...
- Modified
- 1 Mar at 17:18
CommandArgument in the Gridview
CommandArgument in the Gridview I have a gridview like this. ```
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...
- Modified
- 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` ```
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...
- Modified
- 4 Aug at 05:3
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...