Questions tagged [boundfield]

107 questions
0
votes
1 answer

Binding objects to a Gridview

I have three classes (domain, role and user). Domain and role are properties of the user class, like this: public int UserID { get; set; } public string UserName { get; set; } public Domain Domain { get; set; } public Role Role {…
Pedro Dusso
  • 2,100
  • 9
  • 34
  • 64
0
votes
0 answers

Get value from BoundField in ASP.NET

I have two BoundFields one of them is pure text and the other is a numeric value. Here's a sample of one of them:
Dusavini
  • 1
  • 4
0
votes
1 answer

BoundField double show as many decimal places as needed

I have a double variable assigned to a boundfield in a gridview. There will only ever be a max of 5 decimal places. The boundfield is formatting the display to a scientific value. I'm assuming because it would default to a general format which gives…
Luke
  • 288
  • 2
  • 16
0
votes
2 answers
0
votes
1 answer

Multiple datafields in boundfield using codebehind

I am pulling a first name and last name from a SQL table, running it through a datatable and binding the datable to a gridview. Instead of having two different columns in my gridview, I would like to put the first and last name in the same column.…
user-44651
  • 3,924
  • 6
  • 41
  • 87
0
votes
2 answers

GridView Header Text in asp.net using asp:BoundField

I want to change the header text of the gridview using Design.. i created a variable in javascript and initialize variable defending on the condition and then i tried to call that variable over here as…
0
votes
0 answers
0
votes
2 answers

Boundfield in a new row

I have a gridview with BoundField columns and I would like to insert a new row specifically for this BoundField. Is this something that is possible to do? The code is as follows:
mW00t
  • 199
  • 2
  • 9
0
votes
1 answer

Storing BoundField Value in HiddenField on Button Click

I'm having trouble with setting a HiddenField's value to a GridView item value. What I want to do is get the value of a BoundField (in this case, "FIPSCountyCode") in a GridView and store it in a HiddenField when the user clicks a button (in this…
Dejsa Cocan
  • 1,539
  • 3
  • 19
  • 56
0
votes
1 answer

dataformatstring for converting scientific to number

I am trying to bound a datafield which is a string datatype (varchar in SQL Server) and i am exporting into Excel which is leading to an extra space at the end. Could anyone pleae suggest me to resolve the issue? I tried to format the string…
Priya
  • 1
  • 1
  • 6
0
votes
1 answer

nested gridview row values

I have this code:                                                            
michael24B
  • 293
  • 1
  • 6
  • 20
0
votes
2 answers

changing DetailsViewMode on Page_Load event

I have a simple DetailsView control connected to a data source consisting of two T-SQL queries (which work fine). However, when I try to change the mode (depending on the id in the URL) to "Edit" on Page_Load event nothing shows while "Insert" works…
Venom
  • 1,107
  • 4
  • 21
  • 46
0
votes
1 answer

ASP.NET - hiding BoundField input

I have a simple connection to a database achieved through a DetailsView control in ASP.NET. One of the fields is a password so I'd like its content to be hidden while typing. My first thought was TextBox's TextMode="Password" but that failed…
Venom
  • 1,107
  • 4
  • 21
  • 46
0
votes
1 answer

asp:BoundField Yes/ no instead true false

Hi i have a datagrid with PrenotazioneEffettuata is a boolean field. In the grid there is…
Luca Romagnoli
  • 12,145
  • 30
  • 95
  • 157
0
votes
2 answers

How to change the direction of a BoundField in GridView

Sorry if my question seems to simple . Right now in the BoundField of my GridView some data display like "12/11/1381" that i wanna display like "1381/11/12" (opposite direction) . I know i could change the direction via rtl and ltr in TemplateField.…
Mostafa
  • 3,002
  • 10
  • 52
  • 79