Questions tagged [boundfield]
107 questions
1
vote
3 answers
update GridView BoundFields using ObjectDataSource
I have a GridView and I would like to edit/update rows using a custom method in my ObjectDataSource. I can get this to work using auto-generated columns but not BoundFields which is what I need. I have tried doing GridView1.DataBind() in the…

user2665267
- 25
- 1
- 7
1
vote
0 answers
Creating a custom DataFormatString
I have truncated data, for example the data is stored as "r" in the Database but I want to show it in a GridView as "Returning Student", is it possible to create a custom DataFormatString to handle this?
Currently the only solution I've found to…

buckybadger
- 39
- 5
1
vote
1 answer
How to get ClientID for control generated for a BoundField in ASP.NET?
I have a form with BoundFields in it and I need to get ClientID(s) for control(s) associated with each BoundField I have in the form.
How can I do it?
UPD: I do not have control id. All I have is bound field which can not have an id.
UPD2: I'm…

Artem
- 7,275
- 15
- 57
- 97
1
vote
3 answers
Display value on a label from a specific column of the gridview which is not viewable physically
I'm creating this thread as a followed up from my previous one here.
I'm trying to create a gridview filled some data from my database. However, as you can see from the bottom 3 boundfield, i have prevented them from appearing on my webapp.
…

Bryan
- 8,488
- 14
- 52
- 78
1
vote
2 answers
How to hide a specific value(column) from the gridview?
In my gridview i have this following things as shown in my binding of sql with gridview in the page_load as i want it to load upon opening the page.
SqlConnection conn = new SqlConnection();
conn.ConnectionString = "Data Source = localhost;…

Bryan
- 8,488
- 14
- 52
- 78
1
vote
1 answer
Can I use Gridview BoundFields as ControlToValidate and ControlToCompare in CompareValidator?
I have a gridview with two BoundFields for DATE_RANGE_FROM and DATE_RANGE_TO. I want to use a CompareValidator to make sure DATE_RANGE_TO would not contain date that is earlier than DATE_RANGE_FROM when the user edits them. Can I use gridview…

Artemis
- 413
- 3
- 10
- 24
1
vote
2 answers
Asp:BoundField how to force input width
Silly question...
Code:
Html output:

spiderman
- 1,565
- 2
- 16
- 37
1
vote
1 answer
If condition on a gridview for boundfield?
I have a gridview with the following boundfiled. DataField is decimal value. If the value is anything higher than 0 I want to display as True in grdiview else false. How to do , if conditon for the boundfileld . can anyone help. I can use…

software
- 728
- 6
- 18
- 39
1
vote
2 answers
My TextChanged event on a dynamically created textbox in a custom BoundField never fires?
I'm trying to make a custom BoundField (Column) for my custom GridView. I added textboxes to the FooterRow to manage filtering on columns. It displays well, but the TextChanged event is never raised. I guess it is because the textboxes are…

Guillaume Martin
- 103
- 7
- 18
1
vote
1 answer
Django ImageField remove path on Bound form
So I have a ModelForm which is using an ImageField, which works as expected for both inserts and updates. I also have a widget implemented to display a thumbnail for the image if the form is bound. The issue I am having is the file path is still…

user1265072
- 13
- 3
1
vote
1 answer
If Statement in ASP.NET Gridview "ShowEditButton"
I have a question for you regarding ASP.NET's GridView and performing an If Statement when it comes to the commandfield for the "Edit" button.
Here is the code I have right now:
<% if (Eval("Session("auditUpdate")") == true) { %>
…

se_brandon
- 228
- 10
- 25
0
votes
1 answer
SPGridview header column alignment
I have grid that gets created in the code behind.
Grid has columns like Description, Language. Issue is the headertext for these 2 columns is not getting left aligned. The data within the grid have left alignement.
Is there anything I am missing to…

Anirudh
- 581
- 5
- 14
- 32
0
votes
1 answer
ASP.NET: Gridview Formatting Columns with DataFormatString
I want to change these values with DataFormatString properties in Gridview.
1.000000 --> 1 --> Deleting all digits after .
366705.000000 --> 366,705 --> Deleting all digits after . and put the comma for seperate.
12.830000 --> %12,83 --> Delete last…

Soner Gönül
- 97,193
- 102
- 206
- 364
0
votes
1 answer
Set Value to Detailview1's bound field?
This is My DetailView1.. i want to set value for detailsview's boundfield on page load in asp.net. so please go through my code, i hope that you can understand what i want exactly.

rkaartikeyan
- 1,977
- 9
- 29
- 57
0
votes
1 answer
ASP.NET Gridview truncate BoundField from code behind
I am adding a dynamic column to an ASP.NET grid view.
Code to add the dynamic column:
List columns; // this contains all gridview columns.
BoundField boundField = new BoundField();
boundField.DataField =…

developer
- 1,401
- 4
- 28
- 73