Questions tagged [boundcolumn]

9 questions
4
votes
3 answers

Bound Column in ASP Grid view when invisible cannot be accessed

I have a GridView with BoundColumns. The first 2 columns are hidden and I would like to access them using gridView1.Rows[0].Cells[0].Text and gridView1.Rows[0].Cells[1].Text respectively and I get a empty string. When the columns are changed to…
chugh97
  • 9,602
  • 25
  • 89
  • 136
2
votes
2 answers

Possible to call a function inside BoundColumn.DataField?

would it be possible to somehow... ...so I could modify the value as needed? CRAP: A field or…
MetaGuru
  • 42,847
  • 67
  • 188
  • 294
1
vote
2 answers
1
vote
1 answer

How can I conditionally format the text in a cell of a bound column within a grid view without all rows changing

I am taking some columns from a SQL database and using them to populate a gridview with bound columns. Some of the columns contain a date item. I am trying to go through each cell in a column and test the date entered against today's date. If the…
1
vote
1 answer

ASP.NET DataGrid BoundColumn

I have an ASP.NET DataGrid where each row object allows access to its data through the following mechanism: public object this[string fieldName] { get; }. This means that in the XML I need to do something similar and can't just use a PropertyName.…
skaz
  • 21,962
  • 20
  • 69
  • 98
0
votes
1 answer

Fix date format to not show time on BoundColumn

I am trying to change the format of the date to only show the date and not the time in a BoundColumn on a DataGrid but nothing I have tried has worked so far.
user123456789
  • 1,914
  • 7
  • 44
  • 100
0
votes
0 answers

Move columns in DataGrid to next line

I have a DataGrid with 12 columns and I am trying to put the first 6 columns in one row and the rest of the columns in another row straight under that so that it looks like this: I was using two separate DataGrids but if there is more than one row…
user123456789
  • 1,914
  • 7
  • 44
  • 100
0
votes
1 answer

ASP.NET BoundColumn ToolTip

Is there a way to add a tool tip to a BoundColumn? This is my code....
Louis Royster
  • 111
  • 1
  • 12
0
votes
1 answer

Add Title to DataGrid

I have a DataGrid item on an aspx page. The columns are BoundColumns that are populated through a DataSource/DataBind from an Oracle query. What I am trying to do is add a title attribute to each of the column headers What I have is
hrezs
  • 782
  • 1
  • 8
  • 23