all groups > asp.net datagrid control > november 2007
Filter by week: 1 2 3 4 5
Please, Please help!! I am stuck!
Posted by - at 11/29/2007 2:50:58 PM
I have written lots of code and also tested with Visual Studio WEB 2005
but i still dont get it...
This is what i cant get to work:
1. Connect to one datasource
2. Create a sql question that filters with value fetced from textbox
3. Get the data collection that will be viewed
4. Create a gri... more >>
2nd Post - {0:c} causes deletes to fail!
Posted by Scott M. at 11/27/2007 10:11:13 AM
I didn't get an answer on this the first time around, so I'll try again:
=====================================
I've seen many posts complaining about this, but none with a solution.....
I have a GridView that is bound to a SQLDataSource and working just fine,
except that when I change the Dat... more >>
Problem creating TemplateFields in DetailsView dynamically
Posted by Stefan Dirks at 11/26/2007 10:21:34 AM
Hello,
I want to create a TempalteField in a DetailsView dynamically. I call the
"SetDetailsTemplateFields"-Method on every Postback (Page_OnLoad).
The Problem that occurs is, that on every Postback I get a new row, but the
TemplateField is only created in the last row.
Example:
ID... more >>
{0:c} causes input string not in correct format exception
Posted by Scott M. at 11/19/2007 8:43:58 PM
I've seen many posts complaining about this, but none with a solution.....
I have a GridView that is bound to a SQLDataSource and working just fine,
except that when I change the DataFormatString on one of my columns that is
displaying a smallmoney value from SQL (converted to double by .NET ... more >>
Rendering a GridView
Posted by Gerhard at 11/19/2007 5:03:02 PM
I have a GridView that I want to return as an Excel spreadsheet. I am using
vb.net in a web application.
The following code works, with the exception of special characters.
dt = MyDataSet.Tables(0)
GridView1.DataSource = dt
GridView1.DataBind()
... more >>
Updating SelectedIndex after delete
Posted by Nirmal Singh at 11/16/2007 4:40:23 PM
I have a delete button on my page which deletes the selected row in a
gridview.
After the deletion the selected index gets reset to -1. How can I keep the
same selected index?
Nirmal
... more >>
GridView is making two of each column
Posted by Nathan Sokalski at 11/14/2007 12:57:20 PM
I have a GridView control with three columns, all BoundField columns. They
all have a HeaderText and DataField property set, and the third one has a
DataFormatString property as well. When I run my code, the GridView displays
two sets of columns. The first set looks exactly as I would expect. ... more >>
Making an entire column visible/not visible.
Posted by Mufasa at 11/13/2007 9:32:58 AM
How can I programatically change whether a column is visible/not visible in
a DataGrid?
TIA - Jeff.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Modfying bound data in a GridView?
Posted by Scott M. at 11/12/2007 11:52:37 AM
In ASP .NET 1.x, I could have a bound column in a DataGrid and still
"massage" that data so slightly different data was presented in the DataGrid
(using DataBinder.eval and a custom databinding expression).
Can I do something similar with a DataGridView? I want to be able to take a
string ... more >>
wrap text in datagrid cell
Posted by ireallyneedtoknow2007@yahoo.com at 11/12/2007 5:17:21 AM
here is a cleaner version of a question I posted yesterday. I have
tried many versions of the code below but cannot get the column to
wrap. I am using asp.net 2.0 visual studio 2005. ultimately I will
be adding template columns as well, but really need this column to
wrap. thanks for your he... more >>
wrapping text in datagrid
Posted by ireallyneedtoknow2007@yahoo.com at 11/11/2007 10:36:34 AM
hello I am trying to wrap the text in the contact_email cell of a
datagrid in asp.net 2.0 and tried many variations of the code below.
the asp:TemplateColumn HeaderText="Email" wraps as expected but I
cannot get the asp:BoundColumn Visible="False"
DataField="contact_email" field to wrap at all.
... more >>
Reload/refresh data in datagrid
Posted by Pieter Jansen at 11/3/2007 6:28:02 PM
Hi,
When some control in a page modifies the data displayed in a datagrid
(through an sql update query, of course), how do I refresh the datagrid?
Binding the datagrid doesn't seem to work. Re-binding the datasource
doesn't work. Binding the datasources also doesn't help.
Kind regards,
... more >>
Programattically setting gridview to edit mode
Posted by Nirmal Singh at 11/2/2007 1:12:36 PM
I have a button on my form which is enabled when the user selects a record
in the datagrid (I do not want an edit button for each record in the grid).
How can I force the datagrid into edit mode when the user clicks on this
button?
Nirmal
... more >>
|