Questions tagged [gridview]

1

votes
2

answer
11

Views

handling special character '/' in grid view TemplateField

I am trying to concatenate two data fields in template field via '/'character but I am getting error as :: The server tag is not well formed. How should I handle the special character in TemplateField.
user4221591
1

votes
4

answer
1.3k

Views

Difference b/w command field and template field

What is the difference between command field and template field in grid view and how can I use them in grid view? I am new in c# so please provide full help so I can feel easy to work with both. thanks
Ammar Asjad
1

votes
0

answer
18

Views

How do I access a View within a GridView?

I have a GridView which shows a number of colours. I want some of them to be selected, but I can't figure out how to access the individual colours in order to do that. Here's what I have so far: The GridView is drawn in a DialogFragment called DialogFragmentSelectColour. This takes an ArrayList of...
Sharon
1

votes
1

answer
212

Views

Yii2 Grid View Filtering using ajax not Pjax

How to get the value of the attribute in yii2 using ajax not Pjax to filter the Gridview ?
Mohamad ali Zayat
1

votes
1

answer
195

Views

how to make formatted excel columns autofit with c#

I am exporting gridview to excel and this is my code- HttpContext.Current.Response.Clear(); HttpContext.Current.Response.Buffer = true; HttpContext.Current.Response.AddHeader('content-disposition', string.Format('attachment; filename={0}', fileName)); HttpContext.Current.Response.Cache.SetCacheabili...
MUIED AHMAD
1

votes
0

answer
35

Views

need an example trying to use svg/png

This is my first post...im a beginner trying to make an app for android. im trying to make a simple match game using a deck of playing cards. Ive been able to get open source svg and png playing cards online. They either come in individual cards images (in png or svg formats) or one image (svg or p...
con100
1

votes
0

answer
113

Views

jQuery plugin to fixed header is not working when header is merged

I am using jQuery plugin to fixed grid view header refer here : http://gridviewscroll.aspcity.idv.tw/ and I wish to have something like here : http://gridviewscroll.aspcity.idv.tw/Demo/Advanced.aspx#HeaderColumnMerge Freezing one header is working fine but when I merged the header and try to freeze...
Bella Shirota
1

votes
1

answer
38

Views

Staggered Grid showing wrong selected items

I have Staggered Grid with various horizontal textviews and onclick items i am changing colors and adding that items into arraylist. On background its working fine every selected items added into array list. As in first image its shows selected items but when i move bit right few textviews color al...
Ritu
1

votes
0

answer
125

Views

Can't update a column in a GridView with a DropDownList in its EditItemTemplate

I'm trying to do a simple To-Do list application in ASP.NET with C# and I have a problem when I want to update the GridView with a value from a DropDownList. I've read a lot of solved question about this problem on this site but none of them worked so far or I must have missed something. Based on th...
Noctix
1

votes
0

answer
40

Views

I am getting null value in Gridview Datakey. I have loaded Grid through javascript

I want to select a record from Grid that will redirect me to a detail form right now when I select a record it gives me dull value in Gridview.SelectedValue. '> This is my C# Code I can provide more code if you ask. protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { GridView...
Uzair Ahmed
1

votes
0

answer
143

Views

FindControl in GridView returns NULL when used with CheckBox

Issue: Adding a checkbox or other non-Label ItemTemplate field causes a null return on the FindControl method. Normal behavior: Normally, when a user clicks edit, the EditItemTemplate fields become available and I'm able to use the FindControl method to get the Controls. Simple right? protected voi...
Futureproof
1

votes
0

answer
32

Views

Conditionally Show Grid View Columns Based On Checkboxlist

I have a requirement where I have two gridviews. One for the header, and one for the actual data. I want the header grid to start at index[0] regardless of any situation, but I want the data grid to start show/hide based at index[1] (meaning the first two rows of the grid will be displayed regardl...
Smith Stanley
1

votes
2

answer
32

Views

How to do addition of two columns data and display it in the third column

I am inserting values 1,2 and 3 in the 3 column of a gridview and in the fourth column, i am expecting to get the answer as 6 but in the fourth column the values are getting append and the value is like 123 in the fourth column. Below i have pasted the code protected void OnRowUpdating(object sender...
Akhdas Shaikh
1

votes
1

answer
72

Views

Populating around 10 Gridviews using one data source ASP C#

I need to display data from one table to 10 gridviews based on a filter value (column). Lets say colours. So pink grid view should only show items that have Pink in colour column. At the moment I have one Gridview bound (in ASP) to one Datasource. I am updating the datasource in codebehind. Somet...
SANM2009
1

votes
1

answer
46

Views

JQuery To Only Add Checked Rows To Array

I am attempting to only add asp:gridviews that have been checked to my JQuery array. My issue with this is that all rows are added, regardless of check status. What would be the proper way to only add checked rows to this array: $('#btnTest').click(function () { var AjaxData = {}; var AjaxDataList...
Smith Stanley
1

votes
1

answer
37

Views

Clustering 'Like' records yii2

i am attempting to create a table for my client that has a bunch of records of a type, and i need to create a record of a 'child' type which inherits most of its fields from its parent, and that i have done. now i need to use Gridview to display that information but the child records need to be clus...
Andy
1

votes
3

answer
422

Views

Calling button click on file upload inside gridview

I'm trying to upload a file onchange event of the 'Fileupload' control inside gridview. Means when ever user uploads the file, there itself I needs to save the file content in DB. So, I had mannually called the click event of the button control on the change of fileupload control But its throwing as...
Srikanth Reddy
1

votes
1

answer
103

Views

How can i translate a string array to another language?

I want to translate gridViewStrings to another language like Français and Deutsch: CustomAdapter.java: public class MainActivity extends AppCompatActivity { Toolbar toolbar; CollapsingToolbarLayout collapsingToolbarLayoutAndroid; CoordinatorLayout rootLayoutAndroid; GridView gridView; Context conte...
Asmaa Mohamed
1

votes
0

answer
80

Views

set margin to the 1st row of gridview

I want the gridview to start from under the tablayout(marked red) but be scrollable beneath the transparent toolbar and the tablayout. I tried to set marginTop to the gridview but the gridview stays fixed in that place and doesn't scroll underneath the toolbar and tablayout. Is there any way to set...
Shakil Mahmud Shanto
1

votes
0

answer
44

Views

Expanded TextBlock property in List.View nd GridView using WPF

I am trying to create expandable text block under every grid view column in list view. I have managed to add list resources and create C# event to collapse and expand, but I have two problems: First is as I attach it to column expand works only on this column not entire row. Second, I cant bind text...
Wojciech Szabowicz
1

votes
0

answer
47

Views

How to select all files inside a folder on Toolbar item click

I have a toolbar with an option of Select All. I am trying to select all files inside a folder on clicking Select All and change background color of gridview items being displayed on screen. But I don't know how to achieve this. Some answers on this site suggested to use getview() inside adapter . B...
Cersie
1

votes
0

answer
408

Views

Edit GridView using BoundField Column in ASP.Net

I am using GridView for Showing Some Data with Editable Format. But When I am Editing the GridView row I don't get the Value of editable Textbox. Again I get the old Value.Please any one give some Suggestion. Thanks in Advance... Aspx Code: C# Code: protected void grdAppSetting_RowUpdating(object se...
Raji
1

votes
2

answer
285

Views

How to display encoded values from database in GridView Asp.Net?

I have a gridview which displays all data from a database table. However as I have encoded the database values previously the values displayed in the GridView are encoded. What Can I do to decode the values to display them in GridView? Here are my codes I used for Binding the database to Gridview: p...
depressedGirl
1

votes
0

answer
30

Views

how to refresh GridView data

I'm building an app that is using GrirdView full of buttons. I realize that after I change a button colour, the gridView adapter won't updates it immediately. I tried changing the code several times, but It changed nothing. This is my 'game' functions(here I call drawTheMove, and afterwards tries to...
Nakash.i
1

votes
1

answer
2.1k

Views

Flutter Mixed Layout - Grid with Rows

I'm trying to create a basic Flutter app that has a a 2 by 2 grid of text inputs & a button below it. Initially, I just had the grid & no buttons with no problems: void main() => runApp(new App()); class App extends StatelessWidget { ... Widget build(BuildContext context) { return new MaterialApp(...
Neil
0

votes
0

answer
6

Views

gridview OnRowUpdating not working properly

I have a gridview and in that, I am using edititemtemplate. I've used OnRowUpdating event which is executed when I click update link. The problem is that I am not getting the updated values in my server-side code. After checking the breakpoint the values are the old one and not the updated one. The...
Amit Kaushal
1

votes
0

answer
18

Views

Unable to do formating for itemplate in GridView

I have below itemtemplate in gridview where I need to show -stead of null values. I also tried changes the text format like below and still underlines are appearing for null values. Text='' Please correct me if I'm doing anything wrong.
vicky
1

votes
3

answer
134

Views

How to implement base64 decode method into a gridview?

I have a data binding method to bind a gridview to the database. private void BindGrid() { string constr = ConfigurationManager.ConnectionStrings['ConnectionString'].ConnectionString; SqlConnection con = new SqlConnection(constr); con.Open(); SqlCommand cmd = new SqlCommand('select bookingId, booki...
depressedGirl
1

votes
1

answer
74

Views

Dropdownlist inside Updatepanel not passing selected item

I have a Gridview that has a hide/show panel. Inside the Panel there is a dropdown and a button. On button press I need the selected value of the dropdown, but I keep getting the first item, no matted what is selected. I have been investigating the issue and it is to do with the panel control. If I...
SANM2009
1

votes
1

answer
242

Views

Yii2 Gridview : Object of class … could not be converted to string

I tried to display data from table 'Event' to a GridView, I have tried ActiveDataProvider and ArrayDataProvider but both give me this error. PHP Recoverable Error – yii\base\ErrorException - Object of class ... could not be converted to string Can someone explain what should I fix from this code?
ni50
1

votes
1

answer
433

Views

Yii2 performance: render view takes too long

While rendering the view in Yii2, I noticed the render time is a bit too long. And here is a part of log: 03:57:57.435 info yii\db\Command::query SELECT * FROM user_profile WHERE userid IN (16, 15, 12) 03:57:57.501 trace yii\base\View::renderFile please notice the time between in the two st...
Yuzuha
1

votes
1

answer
140

Views

How to clear GridView while working with Firestore?

The problem is that I can't refresh my gridView and when I make changes in Firestore, my gridView doesn't clear and just adds new values(images) from Firestore. I have tried lots of methods that I could find on 'stackoverflow' but with no success. Maybe the problem is with ImageAdapter or with how I...
Mārtiņš Ciekurs
1

votes
0

answer
28

Views

How can I add a new Row to a Gridview and remove the buttons from the previous Row?

I'm referring this walkthrough: http://snipplr.com/view/72801/adding-dynamic-rows-in-gridview-with-dropdownlists-in-aspnet/ and so far it has been really helpful. However, I'm not quite grasping why the row addition repeats the previous one exactly? My dilemma is that I want a dropbox, or specifica...
androidds
1

votes
0

answer
49

Views

GridView doesn't fit whole screen

I have created a custom calendar for my application, that looks like this: The problem is that it doesn't fill the entire hieght of the screen. To make the calendar I've used a GridView with a custom adapter where i set the height of each cell like this: int other = 56 + 30 + 50 + statusBarHeight; c...
Edoardo Pessina
1

votes
0

answer
249

Views

How to set a minimum width in a responsive Gridview in asp.net while using ControlStyle

I have a gridview with a custom css that makes it somewhat of a responsive table so the table columns shrink when the screen is reduced in size. The problem I have is when shrinking the screen I don't want the columns to reduce so far that you can't see them anymore and would like a minimum-width a...
jroyce
1

votes
1

answer
375

Views

Expand/Collapse dynamic GridViewRow in asp.net c#

I am dynamically creating a GridViewRow in RowCreated event of gridview and I need to expand/collapse this particular row alone on button click. GridViewRow HeaderGridRow1 = new GridViewRow(0, 0, DataControlRowType.Header, DataControlRowState.Insert); TableCell HeaderCell1 = new TableCell(); TableCe...
vicky
1

votes
0

answer
18

Views

Gridview onclick each view

I split my page four with gridview and I want to click each view like button and each of them goes another activity. But I dont know how can I set my java. is it same like button? but it doesnt accept: could anyone help me set java. thanks and java gives error: public class ferr extends AppCompatAc...
e.zver
1

votes
1

answer
72

Views

Get the values from GridView items

I am working on a project where I have a let's say 5x5 grid of TextViews and I want to check if an entire row or column has equal elements. I am using an Adapter class to inflate my gridview with simply one textview element. Here is the code that I have tried but I cannot seem to make it work: fina...
rollstapewz
1

votes
0

answer
36

Views

How to add new editable row on the first row of a Populated GridView OnClick

I am currently working on a website using ASP.Net and C# on Visual Studio 2012. I have a GridView that displays data on Page_Load from my database and a button that should add new row AT THE FIRST ROW of my GridView . Is there a way on doing this? I tried adding rows with textboxes dynamically but I...
Pau Gacusan
1

votes
0

answer
8

Views

Bootstrap Modal flashes/disappears instantly - ASP.NET gridview RowCommand

Good morning everybody. I seem to be stuck between a rock and a hard place and fear I may be missing something incredibly simple. I am currently developing a webforms application using an ASP.NET GridView control. I have a bootstrap modal that is intended to display gridview row details through an...
Scott Mallon

View additional questions