Questions tagged [boundfield]

107 questions
3
votes
3 answers

How to use a hidden Boundfield in a GridView in ASP.NET?

I am binding a GridView using a DataSource in asp.net, and i would like to have some hidden BoundFields so I can access those values in my RowDataBound Function. However, when I set Visible="False" on these BoundFields the values do not get set and…
Drew
  • 2,601
  • 6
  • 42
  • 65
3
votes
1 answer

How to put condition in grid view bound field?

here my code- from my collection entity I am getting DayOfTheWeek like 1,2...7. 1 for monday , 2 for tuesday like that. Where should I place condition so…
ppp
  • 303
  • 2
  • 9
  • 22
3
votes
1 answer

Boundfield as part of Hyperlinkfield in a code generated gridview

Can someone please explain to me how I can include a boundfield (Emp_ID) to the HyperLinkField (IDNumber) in a code generated GridView using C#? So that the url string would be '../Pages/Home.aspx?Emp_ID=(Emp_ID)'>(IDNumber) Thanks Snippet code…
janejanejane
  • 496
  • 2
  • 12
  • 30
3
votes
3 answers

Modify Asp gridview boundfield

I want to add some text to a boundfield build in the code behind without writing any code in the code behind. example I receive "overflow" in a specific field, and i'd like to display "stack overflow" and if i receive "house" i want to display…
Marcelo
  • 3,371
  • 10
  • 45
  • 76
3
votes
4 answers

Get the value of a BoundField from a DetailsView

I seem to always have problems with this. I have a button outside of the View that calls a function that needs an OrderNumber. I keep getting an error, ArgumentOutOfRangeException was unhandled by user code in debug mode, or this one in the…
Ray
  • 457
  • 1
  • 6
  • 15
3
votes
2 answers

ASP.NET Boundfield overridden to support Dropdownlist is missing one final feature

I managed to override the Boundfield to display a dropdownlist if I put it in a Gridview. protected override void InitializeDataCell(DataControlFieldCell cell, DataControlRowState rowState) { Control child = null; Control…
Niels Ziegler
  • 466
  • 2
  • 6
  • 15
3
votes
1 answer

Access Boundfield in GridView control

I have a GridView like the one below: I would like to set BoundField's HeaderText attribute value…
Bartosz
  • 4,542
  • 11
  • 43
  • 69
3
votes
2 answers

Gridview BoundField Remove Time from DateTime In Edit/Update Mode

I have the following GridView:
Baxter
  • 5,633
  • 24
  • 69
  • 105
2
votes
1 answer

asp.net gridview binding to deeper property of specific type

my webside has a gridview i bind it to a dataset recived from powershell in this dataset are a lot of different data types. everything is working fine but for one field i would like to bind a deeper property to the boundfield! i bind it like…
Schmurgel
  • 135
  • 1
  • 1
  • 5
2
votes
2 answers

boundfield.py -- render() got an unexpected keyword argument 'renderer'

i see this error many times here and it seems to be different each time. I'm working on a geodjango app with leaflet. and i'm getting this error since i installed leaflet. I rode this in an other post: Support for Widget.render() methods…
Romain BOBOE
  • 367
  • 3
  • 10
2
votes
1 answer

How to set maximum width for Gridview's BouldField Column?

I have a design flaw and in a desperate need for a help because I am fairly new with .NET. I have a GridView on my page and my goal is to limit the maximum width for each column. Below is the code:
Sammm
  • 501
  • 4
  • 9
  • 25
2
votes
2 answers

Using BoundField.DataFormatString to format currency data, no $'s and negative numbers should be in ( )'s

I have a gridview that I am populating with data for the folks in accounting and they want me to format currency values so that they display without $'s, with commas separating digits and with negative numbers surrounded by ( ) e.g.:  12345.67 =…
kaelle
  • 467
  • 2
  • 14
  • 22
2
votes
1 answer

Formatting applied to boundfields in gridview is not working

I have the following columns in a gridview, one is a date and the other one is a dollar amount. I applied the formatting and set the HtmlEncode property to false, however the values still come up unformatted:
Ricardo Sanchez
  • 6,079
  • 3
  • 24
  • 31
2
votes
2 answers

asp:BoundField view the values with a condition

i have a dataview with: is possible hide the values of each with a condition like …
Luca Romagnoli
  • 12,145
  • 30
  • 95
  • 157