Questions tagged [boundfield]
107 questions
0
votes
1 answer
How do I Bind in ASP to a SQLDataSource?
I'm trying to wrap my head around databinding using a sqldatasource. Right now I have a sqldatasource, databound fields, and template fields that I bind using:
<%# Bind("ColumnName") %>. I understand databound fields, but when using the "Bind"…

Will
- 989
- 4
- 19
- 33
0
votes
2 answers
GridView showing complete datasource as well as BoundFields
What I want to do is just display a few specific columns from my data source on my gridview, but for some reason I'm seeing first the boundfields that I want, followed by every column in the data source.

Jordan Foreman
- 3,848
- 7
- 40
- 65
0
votes
1 answer
ASP.net databound field update value
I want to update only selected row, but entire rows were updated instead, like this:
before
after
Afterwards, I have tried using @SMT_Assembly for update statement but it give me error "Must declare the scalar variable". I'm new to ASP.net ,please…

Ee Han
- 13
- 2
0
votes
2 answers
Gridview columns not being set to width I enter
I have two gridviews one displaying under the other one. Both gridviews are exactly the same, the only difference with the second gridview is I am not showing the header column. I have tried setting the widths to the exact same values in both…

user123456789
- 1,914
- 7
- 44
- 100
0
votes
2 answers
Pass enum to method to be used as enum and type
I'm trying to pass an Enum into a method that will create columns for a gridview. I can pass the Enum as Enum passEnum OR Type enumType, and either works, just not together. What I mean is if I pass it as a type the Enum.GetNames() method accepts…

Barry Franklin
- 1,781
- 1
- 27
- 45
0
votes
1 answer
How to manipulate GridView2.Columns as BoundField with auto-generate field?
How to manipulate GridView2.Columns as BoundField with auto-generate field?
Index outof range?GridView2.Columns[6] as BoundField I use Automatic generate field.
JobPostDataContext db = new JobPostDataContext();
var query = from j in…

mike
- 1
- 1
0
votes
0 answers
Define a theme for Gridview with BoundFields in ASP .NET
I defined a theme for Gridview in ASP .NET Theme folder. It is as follows.

Prasanth Kumar Vinakota
- 343
- 4
- 29
0
votes
2 answers
data Grid Data bound field header text change in c#
I have a datagrid that has a BoundColumn there I am trying to change the header text on page load I so fa. I have tried this.

Simple Code
- 558
- 9
- 24
0
votes
2 answers
ASP.Net Mailto link not working
I am trying to open a mailto that will use the emailaddress from the databound field and add a custom subject line and custom body.
My mailto window pops up and the email address specific to the data field is populated, however the subject and the…

Donncha
- 43
- 1
- 7
0
votes
1 answer
How can I find a BoundField inside a GridView by DataField?
I want to change the CSS class behind the tenth BoundField inside my GridView, but I'd like to find it by DataField (i.e., use a string as index).
protected void gdDeliveryDates_RowDataBound(object sender, GridViewRowEventArgs e)
{
if…

ShieldOfSalvation
- 1,297
- 16
- 32
0
votes
2 answers
A field or property with the name 'Id' was not found on the selected data source
i am not sure what am i missing here? i just changed my sql statement and now it says that its not reading the "ID" can someone please help me out?
here is my html code:

Reine Viray
- 65
- 2
- 11
0
votes
1 answer
updating data in boundfield (Input string was not in a correct format.)
I have a viewproducts page and what I want is when clicking on the edit link, two fields will be edited (Name and Price). here is my html code:
…

Paolo Duhaylungsod
- 487
- 1
- 7
- 25
0
votes
0 answers
get value from string or store in database?
this is my viewcreditrequest html page:

Paolo Duhaylungsod
- 487
- 1
- 7
- 25
0
votes
1 answer
Dynamically insert data or button inside a template field if data is empty
Dear users I have a little issue.
I have a gridview with several columns as follows:

tuxj
- 39
- 8
0
votes
2 answers
GridView css Clashing with BoundField css
In my GridView I am using w3schools css. Inside the grid view, I want to hide one column (BoundField) but not by setting the "Visible = false" as I want to access that columns data.
For the BoundField (The column I want to hide) I am using css to…

user2211486
- 237
- 1
- 6
- 18