all groups > asp.net datagrid control > december 2005
Filter by week: 1 2 3 4 5
RowEditing without ObjectDataSource (x posted from ....adonet)
Posted by Jim Katz at 12/30/2005 5:21:02 PM
I have an application that updates a strongly typed data set at run time.
I'd like to dynamically create a table that connects to a run time data
table. For displaying the data, this works well. I just set the
GridView.DataSource once, and call DataBind();
I'd like to drive the applicati... more >>
Why doesn't TextBox control get updated
Posted by Tuomo at 12/30/2005 3:33:40 PM
Hi!
I have a form (System.Web.UI.Page) that contains a DataGrid control and a
DataTable that contains values for the data grid and that is data bound to
the DataGrid. When I switch the grid to edit mode (e.g. if I set
DataGrid.EditItemIndex = 0) the values in the data table are displayed ... more >>
Call client script to update an item in a data grid
Posted by LehrSJ at 12/30/2005 11:35:04 AM
Is there a way to run client script function or procedure to update data in a
data grid? Say I have a textbox in the datagrid. The user enters some data.
After exiting the textbox I'd like a client script to change the new value to
all upper case or if it's a date format it a certain way.
... more >>
Datagrid's items are empty after Postback !!!
Posted by Maaty at 12/29/2005 12:00:46 PM
I have a datagrid that represents a Shopping Cart content. I have a
checkbox and a quantity-textbox in each item. An update-button event is
assumed to retrieve the changes happened to both item's controls.
I had this module working probably for a long time. Once, and I don't
know how, the event ... more >>
Help me understand what is wrong (Data not showing)
Posted by Lorenzo at 12/28/2005 6:44:13 PM
Hello there I have somenthing pretty strange to me that I am trying to
understand but I seem to fail.
I have the following simple code that works fine in one scenario and give me
an hard time in another one. I have understood where the problem is but
there is a main concept that I am not g... more >>
Nested Datalist Controls
Posted by Darrin at 12/28/2005 11:55:03 AM
Greetings, I am trying to get the checkbox value from a nested datalist once
I press a button on my form (not within any of the datalist grids). I am
using asp.net 1.1/vb.net
The project I am working on provides users to register for a specific event
and also view all the sessions going on ... more >>
urgent going crazy data not getting sorted!
Posted by samir25 at 12/28/2005 12:01:51 AM
hi
here is a part of my datagrid itembound event where i calculate 2
columns and assign values to the columns
Dim fileBytes As Integer = (fi.Length / 1024)
Dim lastmodifeddt As Date = File.GetLastWriteTime(FilePath & filename)
lastmodifeddt = lastmodifeddt.Date
lbl.Text = fileBytes
lbl2.Tex... more >>
how to create datagrid control with vertical columns
Posted by saket at 12/27/2005 3:09:09 AM
hello frnd
if any one cud help me how wud i create gatagrid control with header fields alligned vertically..rather than horizontally(default
---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Retrieving hyperlink query string values
Posted by martinharvey via DotNetMonster.com at 12/25/2005 5:31:53 AM
This is probably a very simple question but i would appreciate some help
I want to retrieve the ProductID from the querystring
<asp:HyperLinkColumn Text="View Details"
DataNavigateUrlField="ProductID"
DataNavigateUrlFormatString="details.aspx?ProductID={0}"
/>
In ... more >>
NullReferenceException
Posted by mohit at 12/24/2005 8:10:41 AM
Hi all,
I am creating a web application on web matrix.I have a
datagrid.I have the following code :
DataTable dt=(DataTable)Session["DataGrid"];
DataRow dr = dt.NewRow();
DataView dv;
First it was giving correct result.After that I run the same code then
it is gi... more >>
Datagrid Paging Problem
Posted by martinharvey via DotNetMonster.com at 12/24/2005 7:35:24 AM
This is probably a simple question but i would appreciate some help.
I am trying to implement paging with a datagrid that also has a button that
allows the user to insert selected information into a datatable thus:
<asp:DataGrid id="dg" runat="server" ShowHeader="False"
AutoGenerateColumns="... more >>
Changing the with of an unbound datagrid
Posted by Kevin Humphreys at 12/22/2005 3:15:18 PM
Hi,
I have a basic datagrid. But I want to change the width of one of the
columns. The problem is all of the columns are the same width.
I am using an unbound datagrid being filled by a dataset.
Can you help?
Thanks In Advance,
Kevin.
... more >>
Column width
Posted by Tumurbaatar S. at 12/21/2005 8:36:31 PM
How to retrieve _real_ width of DataGrid's column?
At design-time I set width of template columns with the following way:
<headerstyle width="80px"></headerstyle>
This sets the minimal width of the column and during run-time if the column
contains a long text, it can expand. I need to get ... more >>
How to connect button event and datagrid in different files
Posted by mohit at 12/21/2005 8:16:34 AM
Hi,
I have two files : Text.aspx and Default .aspx.
Default.aspx has a Detagrid web control and Text.aspx has a Button web
control.
For this buttton event I want something like if I press the button it
should cause to increase the datagrid of the Default.aspx by one row.
How to do th... more >>
How does a nested datagrid reference parent row in master datagrid?
Posted by nospam NO[at]SPAM nospam.sss at 12/20/2005 5:38:22 PM
I have a nested datagrid in each row of a master datagrid. The nested grid
has full functionality of inline edits. How do I reference the datakey
collection of the master datagrid passing the proper collection index?
For example, if someone clicks 'edit' or 'update' link in the child
datagrid ... more >>
Gridview Stored Procedure output paramters or return value
Posted by LehrSJ at 12/20/2005 3:44:02 PM
I have a gridview in ASP.Net 2.0. I'm using a SQLDataSource and the
SelectCommand and UpdateCommand use a stored procedure. I have an output
parameter in the UpldateCommand. How do I get the value that is returned
from this parameter? Or if it was a return value, how would I get that?
... more >>
EditCommand (Datagrid nested in a Data Repeater)
Posted by reflektmedia NO[at]SPAM gmail.com at 12/20/2005 10:14:19 AM
I have a Datarepeater (parent) who has a datagrid(child) for each item
of the repeater. I have the Add/Insert, and Delete working correctly
in the datagrid. The problem occurs when clicking EDIT in the
datagrid(child).
I can debug and see that it is correctly going into my EditCommand
event... more >>
PageIndexChanged not firing
Posted by TnCoder at 12/19/2005 12:17:02 PM
I'm new to web app. programming so please bare with me. I have a datagrid
that has several items. The allowpaging is set to true. The gird initially
loads just fine, but if I click on the next page, (or any other) the grid
disappears. I've put stops on the code in the PageIndexChanged event, b... more >>
Gridview Date Format Problem
Posted by Jules Wensley at 12/17/2005 2:23:46 AM
Hi
I have a Gridview in ASP.Net 2.0. I'm populating it with data from a SQL
2005 database (but with legacy design).
In the DB, the dates are stored as DateTime - DD/MM/YY HH:MM:SS.
In the bound Gridview, I'm applying the {0:d} format (to show just the short
date).
The date is still d... more >>
Any suggestion
Posted by Microsoft at 12/15/2005 6:00:47 PM
Guys,
Im a Tech lead in .net.Just wanted to know if theres any live online
sessions for discussions on .Net,C#,Asp.net like MIRC,YAHOO Chat rooms....
Regards
Rajesh
... more >>
InsertItemTemplate
Posted by bgallagher at 12/14/2005 12:34:34 PM
Is there a way to reference the objects within this template? I need to
add a file upload object (which I can do) but then need to know how to
reference that from an event so that I can then upload the file.
Thanks in Advance
... more >>
No "bordercolorlight" or "bordercolordark" table attributes with DataGrid ??
Posted by Jim Moon at 12/12/2005 3:12:06 PM
I'm trying to get the same look and feel from a new ASPX page that I have in
some older ASPs. They run side-by-side in a website.
How do I get the <asp:DataGrid> to write the "bordercolordark" and
"bordercolorlight" table attributes that I'm accustomed to using?
Thanks,
Jim
... more >>
Gridview - how to use stored procedures to update
Posted by Roberto Kohler at 12/12/2005 1:33:22 PM
I am trying to use a stored procedure to update a row in a Gridview but I
get the error
"Procedure or function sc_updDEPT has too many arguments specified"
The Stored procedure takes 3 parameters "sc_updDEPT @idplant, @iddept,
@deptname"
I configured the SqlDataSource to use the sc_updDEP... more >>
Help Creating Dynamic Checkbox Column
Posted by jeffcrater NO[at]SPAM hotmail.com at 12/11/2005 9:42:07 PM
I am using C#.
I can dynamically create a template column but how do I place a
checkbox control in the column header?... more >>
Automatically select a row or page
Posted by et at 12/10/2005 8:39:47 AM
I fill a paged datagrid based on an item the user clicks, which returns an
ID. The dgrid's datasource contains several records, but I want it to open
and automatically select the row or go to a particular page based on the id
field of the grid. How can I do this?
Thanks for your help.
... more >>
control over a column in datagrid by clicking its header
Posted by sakons at 12/9/2005 11:37:14 AM
Hi all
I have a problemin a webcontrol datagrid
I want to click on a column header and then be able to sort the grid by
that column and select that column without using sortcommand -or
control the column by click its header - the line under the header test
is more my problem - how can i contol ... more >>
Could not find a property named in ASP.NET 2.0
Posted by Bart at 12/9/2005 5:39:05 AM
Hi,
I get this exepction
"Could not find a property named 'COM_NAME' on the type specified by the
DataObjectTypeName property in ObjectDataSource 'ObjectDataSource1'."
when i try to update a detailgrid or form.
The detail grid is bound to an objectdatasource control
... more >>
Select buttons in datagrid
Posted by Vik at 12/8/2005 10:52:25 AM
If there are a few Select buttons in a datagrid, is there a way to
distinguish in code which button was clicked?
Thanks.
... more >>
How to export the excel values to crystal reports
Posted by nivas.meda NO[at]SPAM gmail.com at 12/8/2005 7:25:35 AM
Hi ,
I am a dotnet developer.I am working on crystal reports.My requirement
is like this
I have an excel sheet with some values.I need to read the excel values
from excel sheet and need to show the values in crystal reports using
c#.what i can do for populating the excel values into crystal... more >>
Calendar Control InvalidCastException
Posted by Trevor Bezotte at 12/7/2005 5:57:00 PM
Hi,
I have a calendar control in an EditItemTemplate on a DetailsView which
works fine, until I switch to a record in Edit mode which has no date in
that field.
Here is the error:
System.InvalidCastException was unhandled by user code
Message="Specified cast is not valid."
Source=... more >>
Why Soo Slow ?
Posted by Jay at 12/5/2005 10:20:31 PM
ASP.NET 2.0.
One line of code (checkbox onclick) in a databound grid really slows down
the page load...
<asp:TemplateColumn>
<ItemTemplate>
<asp:CheckBox ID="chkEmp" onClick=<%# "HighlightRow(this, """ +
Eval("empname") + """)"%> runat="server" autopostback="False"/>
</ItemTempla... more >>
Hiding Datagrid Rows
Posted by Shankwheat at 12/3/2005 12:00:00 AM
I have a checkbox next to each record in my datagrid that I want t
either hide or display depending on whether the checkbox is checked.
I want to hide/display the rows not the columns. This is what I came u
with so far but maybe there's a better way? Thanks.
Private Sub btnDisplayCheck... more >>
Programmatic access to TemplateColumn?
Posted by matt NO[at]SPAM mailinator.com at 12/1/2005 4:12:01 PM
hello,
i have a datagrid w/ a TemplateColumn in it, like so:
<asp:TemplateColumn HeaderText="Select">
<ItemTemplate>
<asp:CheckBox ID="chkSelected" Runat="server"/>
</ItemTemplate>
</asp:TemplateColumn>
....in my c# code-behind, how do i access the checkbox? i need to add a
ja... more >>
DetailsView EditItemTemplate DropdownList Update Problem
Posted by Trevor Bezotte at 12/1/2005 2:53:40 PM
Hi!
I have a DetailsView with a DropDownList in an EditItemTemplate, I know,
pretty cool right? But when I try to Update the table with a new value from
the DropDownList the table does not get updated with the new value. I'm new
at this and I'm sure I'm overlooking something simple here. I'... more >>
A collapsing panel in a datagrid/gridview
Posted by Simon Harvey at 12/1/2005 3:29:57 AM
Hi all,
Can anyone tell me what the easiest way to achieve a collapsable panel area
in a datagrid is? Do I need to find a third party panel control or does the
datagrid/gridview somehow support this functionality inherently?
Many thanks to anyone who can advise
Simon
... more >>
|