Questions tagged [gridview]

A Gridview is a control for displaying and manipulating data from a variety of data sources.

A Gridview is a control for displaying and manipulating data from different data sources. It shows data from a variety of data sources in a tabular format.

26809 questions
29
votes
5 answers

How to implement full row selecting in GridView without select button?

I'm implementing a feature that when the user press on any point in the row in a GridView the row will be selected instead of Select button. To implement that, I'm using the following code: protected void GridView1_RowDataBound(object sender,…
Homam
  • 23,263
  • 32
  • 111
  • 187
29
votes
4 answers

How to enable and disable sort in Yii2 GridView?

How to enable and disable sort in Yii2 GridView ?
rdanusha
  • 913
  • 3
  • 15
  • 24
28
votes
4 answers

How do you style a WPF GridView Header?

I went from this: WPF GridViewHeader styling questions to this: Now I just need to get rid of the white space to the right of the "Size" header. I basically have a template for the GridViewColumnHeader that makes it a TextBlock. Is there any way…
djschwartz
  • 1,236
  • 3
  • 14
  • 23
27
votes
2 answers

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 generated for them has attribute disabled="disabled". So the value cannot be changed. Generated HTML example:
brain_pusher
  • 1,507
  • 3
  • 21
  • 31
27
votes
2 answers

Extjs grid panel with checkboxes

How i can create ExtJs grid panel with checkboxes like here.
edtsech
  • 1,167
  • 2
  • 11
  • 17
27
votes
3 answers

GridView row height

I have a GridView that displays images, which are, unfortunately, of different sizes. They are shown in between two lines of text: text1.1 text1.2 ImageView(IMAGE1) ImageView(IMAGE2) text2.1 …
kozyr
  • 1,334
  • 1
  • 20
  • 30
27
votes
5 answers

Prevent user from resizing columns with WPF ListView

How can I prevent a user from resizing GridViewColumns withing a ListView control?
Joachim Kerschbaumer
  • 9,695
  • 7
  • 49
  • 84
26
votes
2 answers

Android GridView draw dividers

I'd like to know the simplest way to draw dividers between items (currently textviews) within a GridView. The only way I can think of is to draw borders around those textviews so when combined, they look like continuous horizontal and vertical…
Eric Chen
  • 3,562
  • 7
  • 39
  • 58
26
votes
9 answers

How to use HtmlEncode with TemplateFields, Data Binding, and a GridView

I have a GridView bound to an ObjectDataSource. I've got it supporting editing as well, which works just fine. However, I'd like to safely HtmlEncode text that is displayed as we do allow special characters in certain fields. This is a cinch to…
Sean Hanley
  • 5,677
  • 7
  • 42
  • 53
26
votes
5 answers

PageIndexChanging in GridView in ASP.NET

I have a gridview which I am using to display a dataset result. The problem is I am using paging in it. But when I click on the page # it says that I haven't handled the event. Do I need to rebind the dataset??? Thanks
JCTLK
  • 2,145
  • 8
  • 29
  • 37
26
votes
1 answer

How do I add a column with buttons in to a gridview in asp.net?

As my gridview is populating I want to add an extra column with some buttons in but I can't seem to figure out how, or what might be the best way. Can anyone get me started?
NibblyPig
  • 51,118
  • 72
  • 200
  • 356
25
votes
6 answers

Yii2: Remove "(not set)" in GridView and DetailView for null values

How can I remove or replace strings (not set) in my GridView and ListView?
robsch
  • 9,358
  • 9
  • 63
  • 104
25
votes
1 answer

WPF : Dispatcher processing has been suspended, but messages are still being processed

I Have a WPF Project, When i try to Run This Code On RowLoad Event I got below Error : private void ParentGridView_OnRowLoaded(object sender, EventArgs e) { try { if(((RadGridView)sender).Columns != null) { …
Amin Eshtiaghi
  • 253
  • 1
  • 3
  • 6
25
votes
5 answers

Javascript before asp:ButtonField click

I have a GridView control in an Asp.net application, that has a of type="image" and CommandName="Delete". Is there any way to execute a piece of javascript before reaching the OnRowDelete event? I want just a simple confirm before…
Pablo Fernandez
  • 103,170
  • 56
  • 192
  • 232
25
votes
7 answers

How to get row data by clicking a button in a row in an ASP.NET gridview

I have a GridView in a ASP.NET web application, in which I have added two buttons in each row:
Tamal Kanti Dey
  • 566
  • 2
  • 8
  • 28