all groups > asp.net datagrid control > august 2004 > threads for august 8 - 14, 2004
Filter by week: 1 2 3 4 5
Header Text disappears when setting SortExpression
Posted by Selden McCabe at 8/14/2004 4:13:29 PM
I have a datagrid that I want to set the column header text, column width,
bound data field, and sortexpression in code at run time.
This was working fine until I added the sortexpression, at which point the
headers disappeared!
Here is the code:
Private Sub AddColumn(ByVal sHeader As Strin... more >>
_M
Posted by PiotrF at 8/14/2004 1:11:01 PM
I am testing ASP.NET 2.0 with MS SQL 2000. I get server error: "Exception
Details: System.Data.SqlClient.SqlException: Must declare the variable
'@KEY'" after record updating in GridView or DetailsView. I do not get this
message when I use MS ACCESS. I do not get this message with MS SQL whe... more >>
Deleting a row in a datagrid
Posted by peashoe NO[at]SPAM yahoo.com at 8/13/2004 2:11:11 PM
Hey all,
I've spent an hour reading posts to see how to delete a row in a
datagrid but none of them work for me (most are VB.NET and I'm coding
in C#). Specifically, I have a checkbox next to each row and a
"Delete" button at the bottom. What I want is for each row that is
checked to get delete... more >>
Unable to retrieve textbox value from datagrid
Posted by John Dalberg at 8/13/2004 10:56:00 AM
I have a datagrid plus a button to save the contents of the grid to the
database. My code gets blanks in the textbox field. I am not sure why.
Also I don't know why dgi.Cells[1].Controls[0] & dgi.Cells[1].Controls[2]
are Literal Controls. The html shows only a textbox in the second table
cell.
... more >>
Computing columns in dtagrids
Posted by Coleen at 8/13/2004 10:06:22 AM
Hi all :-)
I'm having a BIG problem with getting a grand total in a data grid. I'm =
sorry, this is sort-of a double-post, but I REALLY need some help =
(please?)
I need to get the grand total of a column in a data grid and use that =
value to divide the data in the SAME column by the gran... more >>
problem sizing columns in datagrid
Posted by usenet_daughter NO[at]SPAM yahoo.com at 8/13/2004 9:02:43 AM
I have a datagrid that has a column that I would like to be the widest
(say 60%) - however another column is populated with some data that is
sometimes a rather long string, and it expands to take up most of the
table width. I tried to force the column sizes to force the longer
column to wrap bu... more >>
Any DataGrid Gurus out there?
Posted by wdewebserver at 8/13/2004 8:47:57 AM
Hi
How can I force a DataGrid into Edit Mode from Page_Load?
How can I call the ItemCommand from Page_Load?
Can I have a hidden CommandButton and call it's click event
programmatically?
Please help - very urgent.
... more >>
Datagrid Summary
Posted by Robin at 8/12/2004 8:25:48 PM
Using a datagrid is it possible to add a summary row to the end of the data?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
if evaluation in template column
Posted by Crash at 8/12/2004 3:44:48 PM
I want to set the Selected attribute depending on the data in the data =
item, this was what I tried, but didn't work.
<asp:TemplateColumn HeaderText=3D"Schedule Type">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "Schedule Type")%>
</ItemTemplate>
<EditItemTemp... more >>
Re-Order Items in DataGrid Client-side?
Posted by Andrea Williams at 8/12/2004 3:18:26 PM
I have a page where the user adds authors to a DataGrid along with various
settings for each author. I need to allow each item in the grid the ability
to move up or down in the list (basically re-order the authors) and then
save the order back to the database.
In classic ASP I would put the l... more >>
Datagrid Sorting
Posted by Yama at 8/12/2004 2:00:53 PM
Hi,
When trying to dynamically add the header column name in my datagrid I lose
the sorting abilities.
private void grd_ItemDataBound(object sender, DataGridItemEventArgs e)
{
ListItemType itemType = e.Item.ItemType;
if (e.Item.ItemType == ListItemType.Header )
{
e.Item.Cells[2... more >>
NEWBIE - Column Totals in Footer of mxDataGrid
Posted by RockNRoll at 8/12/2004 1:17:54 PM
Greetings,
How can I display the total of one or several columns in the footer of an
MxDataGrid?
If there is a link to a tutorial or article, I would appreciate it. Thank
you,
-Dave
... more >>
check box in datagrid
Posted by Jason at 8/12/2004 12:42:59 PM
Hi, all:
I have a datagrid in a web form, then I added a check box for each row. Also I
have a "submit" button at the bottom of the page. Now, when user click "submit"
button, how can I know which row(s) user has checked?
Thanks in advance.... more >>
Time Format in datagrid (Hours, Minutes, Seconds)
Posted by ericlangland NO[at]SPAM hotmail.com at 8/12/2004 12:00:34 PM
I have a column in my database that stores total seconds. I want to
bind this colum to my datagrid. Is there a way to have the time show
as hours, minutes, and seconds without me having to build a custom
function to handle this.
The database column value is: 120 seconds
I want it to say "2 ... more >>
Custom Control design time access to SQLConnection on Web Page
Posted by Robin Shaw at 8/12/2004 8:56:20 AM
Hi
I'm developing a server web control and it requires a SQLConnection object.
Is there a way at design time to display a list of available SQLConnection
objects that have been dropped on the page as a property of my custom
control?
Thanks in Advance
... more >>
Datagrid selected items with checkbox
Posted by Bnob at 8/11/2004 12:40:09 PM
I read some articles about the way to find the rows having his checkbox
checked.
Here is the code
Private Sub btnModifier_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnModifier.Click
Dim dgItem As DataGridItem
Dim chkSelected As CheckBox
For Each dgItem ... more >>
problem with andy's datagrid checkbox webcontrol
Posted by c24chan NO[at]SPAM yahoo.ca at 8/11/2004 9:24:26 AM
Hi:
I am using the Andy's datagrid checkbox webcontrol in here:
http://metabuilders.com/Tools/RowSelectorColumn.aspx
I ran the example given and it went fine. However, once I moved all
the subrountines to the code behind page, it cannot show the selected
rows anymore, why is that?... more >>
Parent Child data in multiple datagrids
Posted by Crash at 8/10/2004 5:08:14 PM
I bet this is simple for those who have worked with the datagrid for =
while,=20
I have a parent grid and a few child grids, i want to bind the children =
so when i click on the parent the children update appropriately, so I =
thought I could do this. But the child grids appear to have the rig... more >>
How do I dynamically bind a textbox into a grid field in ASP.NET using only the code behind?
Posted by Steve Mauldin at 8/10/2004 11:56:50 AM
I am trying to take dynamically generated datagrid that is bound to a data
source and make one of the fields on the grid into an editable textbox that
is bound to a field from the data source. Using a microsoft example from
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/... more >>
using css
Posted by amoss at 8/10/2004 9:22:37 AM
Hi everybody
Im new to asp.net and these newsgroups so please excuse me if this has
been asked hundreds of times before.
I have been using classic asp for a couple of years and recently decided
to take the plunge into asp.net. Im going through the quick starts
provided with the sdk. as im ... more >>
Inserting individual items into a datagrid
Posted by W Akthar at 8/10/2004 9:11:05 AM
Hi,
Is there a way to insert items into a datagrid
individually instead of using datasource and databind??
For example:
I have a collection of people,
I want to be able to iterate through this collection and
insert particular items into a datagrid.
namesCollection = MyService.GetAll... more >>
Reverse Binding of DataGrid
Posted by Robert Roney via .NET 247 at 8/10/2004 9:04:18 AM
I've created a DataGrid full of template columns to allow my user=
to simultaneously edit any of the rows=2E Everything functions=
fine, until I try to save the data=2E The issue involved is that=
the DataGrid is based on a Sorted DataView=2E If the field I=
update in the DataGrid was par... more >>
Getting the value of another cell in Grid in ItemTemplate
Posted by msnews.microsoft.com at 8/9/2004 5:22:28 PM
Here's a tough one, but one I've run into serveral times now.
I know that you can use DataBinder.Eval(Container, "Field") to set a value
of a control in an item template. Works great.
However I need to do some inline code, because some of the items I need to
display one set of controls, an... more >>
|