all groups > asp.net datagrid control > may 2004 > threads for may 15 - 21, 2004
Filter by week: 1 2 3 4 5
Mathematical formula used in dynamically rendered DataGrid
Posted by Louis-Vincent Guay at 5/21/2004 4:15:22 PM
Hi,
I'm trying to find the ASP mathematical formula for the calculation of
the width in a dynamically rendered DataGrid with a SQL statement. Is
someone knows such a formula, I'll be glad to know.
I'm thinking of something related on proportions, but I'm absolutly not
sure.
... more >>
Display Datagrid group Subtotals
Posted by pv_kannan NO[at]SPAM yahoo.com at 5/21/2004 2:49:45 PM
Hello,
I am trying to achieve something in this format in a datagrid...
Apologize if the drawing is not very clear...
Make Model Value
===== ===== ======
Toyota Tercel 16000
15500
--------------... more >>
hiding a Datagrid column
Posted by samuel Mesel at 5/21/2004 1:31:04 PM
I'm developing an ASP.NET application. I have a datagrid that has
7 columns. The first 3 columns contain buttons (Select, Edit, and Delete)
The next 4 contain data (Table name, Change Description, Change Date,
and Table ID). I need to have the Table ID of the user's selected
table - I use it ... more >>
adding Cutom columns from a business collection object
Posted by Nabeel Moeen at 5/21/2004 12:11:57 PM
Hello all,
I'm new to ASP.NET and the .NET framework. I've been trying to get the
WebControls.DataGrid to work but havent been successful in acheiving the
desired results.
What i need to do is, set the DataSource for the grid to some business
collection object (from my application framework). i... more >>
Footer data - more than one row (sumarizing)
Posted by Miguel Ramirez at 5/20/2004 7:06:59 PM
Hello All,
How can I add two rows on a datagrid footer for totals.
I am displaying month sales for each customer on a datagrid, but for footer
totals I want to display totals for customer as well as for region.
So far I can only add one row totals in footer.
I was thinking maybe to do it wi... more >>
Get Class from Aspx-File
Posted by Daniel H at 5/20/2004 3:08:56 PM
Hi,
Is it possible to get the "ClassType" from a Filename to a .aspx file?
I would like to access a class from an another page, knowing the filepath to
the aspx-file (or the .cs-file)
As I belivie that is how ASP.NET works (reading the aspx file and its <@
Page > to find/create the class )
... more >>
DropdownList in EditItemTemplate
Posted by randy at 5/20/2004 2:14:29 PM
I have a template column and a DropdownList in the EditTemplateItem area. I
can't find a way to bind a datatable to it when EditItemIndex is set...HELP
After the user clicks Update the following code should work...
dim cbo as DropdownList
cbo = ctype(e.Item.FindControl("Dropdown1"), Dropd... more >>
confirm before delete ?
Posted by mark at 5/20/2004 1:38:27 PM
how would i add a yes/no box for a delete button ? e.g. this is my code -
If e.CommandSource.commandname = "Delete" Then
mainid = e.Item.Cells(0).Text
mi.Text = e.Item.Cells(0).Text
Dim strConn As String =
"server=********;uid=****************;pwd=*********;database=************"
Dim conn As... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Stored Procedures
Posted by Anthony M. Davis at 5/19/2004 5:57:13 PM
Hi all,
I'm a little confused about how to obtain a result set from a stored
procedure (stored in a Visual FoxPro 8.0 database) from an ASP.NET web page
in order to populate a WebForms DataGrid control.
I've been experimenting using the code below but the only output i can get
is:
return... more >>
Strange behavior of invisible controls
Posted by Peter Afonin at 5/19/2004 1:26:57 PM
Hello:
I'm updating multiple rows in the datagrid, using the routine described in
the article "Top Questions about the DataGrid Web Server Control":
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchtopquestionsaboutaspnetdatagridservercontrol.asp
To d... more >>
Fully Editable Datagrid
Posted by Pawan Gupta at 5/19/2004 2:39:09 AM
Hi,
I am fairly new to ASP.Net but the transition to .net
world cudnt have been more easy .. I have enjoyed wurking
in .Net till now. Well I have a requirement to make the
datagrid fully editable. Is there any way to do so ??? I
did google but they talk about writing you own custom
cont... more >>
Why do my datagrids have scrollbars?
Posted by Greg at 5/18/2004 5:13:03 PM
I have this one particular aspx page that, whenever I put a datagrid on it,
the datagrid has scroll bars. I know that if you put a datagrid inside a
DIV tag, it will have the scrollbars, but that's not what I want. This page
I'm talking about has no DIVS. If I create a new aspx page, placing a... more >>
How to set the size of a edit-column in a datagrid
Posted by Tomas at 5/18/2004 1:01:59 PM
Hi
I'm trying to set the size of the textbox that appears when clicking the
edit-button in a datagrid, but I'cant find out how to do it.
// Tomas
... more >>
Datagrid: aligning a template column
Posted by d[ - - ]b at 5/18/2004 12:33:40 PM
Hi,
Is it possible to align a template column? Tried align, textalign and
itemstyle (but I think that one is for the whole grid?), and nothing works.
It's a simple datagrid, but one field is a dollar ($) value, so I've had to
do a TemplateColumn so that I could make it have the '$'-sign and t... more >>
Export to Excel
Posted by Ugo at 5/18/2004 12:17:46 PM
We are trying to export a datagrid to excel but we are using forms
authentication and when we change the ContentType =
"application/vnd.ms-excel". the page that is sent to excel is out login
page instead of the datagrid. For some reason our authentication cookie
must get deleted.
Any ideas.... more >>
wrapping text in a datagrid cell
Posted by roybrew NO[at]SPAM att.net at 5/18/2004 5:17:44 AM
I have a datagrid that I am having text wrapping problems with. And
the wrapping problems only happen with text containing long urls. If
I set the column width to a fixed width through the ItemStyle-Width
property in the ASPX file, the text above and below the url honor that
fixed setting. Al... more >>
Summing a column and displaying in the footer
Posted by William Gower at 5/17/2004 1:03:16 PM
I would like to sum a column in my dataset and have it displayed at the
bottom of the datagrid in the footer. How do I do that?
... more >>
Checking a checkbox based upon a table field
Posted by William Gower at 5/17/2004 11:48:37 AM
I have a template column in my grid that displays a checkbox. I would like
to have the box checked if a field in the table that the grid is based upon
has a "C" in the field. How do I do that?
<asp:TemplateColumn HeaderText="Close">
<ItemTemplate>
<asp:CheckBox Runat... more >>
How to prevent a checkbox from showing up in a datagrid with no records?
Posted by burak.gunay NO[at]SPAM xpandcorp.com at 5/17/2004 9:26:03 AM
Hello,
I have a datagrid made up of two columns, the first has a checkbox in
it and the other holds a job id.
<Columns>
<asp:TemplateColumn HeaderText="Select"
HeaderStyle-HorizontalAlign="Center"
ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:CheckBox ID="chkIncomplete" Run... more >>
Multi row header in Datagrid
Posted by William Gower at 5/16/2004 11:20:28 PM
I have two columns in my datagrid, Hours Bid and Hours Expense. I would
like to have the word Hours span both columns and then just have the column
headings Bid and Expense underneath. Is that possible and how do I do that?
... more >>
Trigger Button1_ServerClick event from a popup form...
Posted by rmorvay at 5/16/2004 10:51:43 AM
I allow users to click a datagrid row and it spawns another browser page to
allow edits to the data in that row. Once they update the data, it is
committed to the database and the form is closed. Once the edit page is
closed, I need to trigger the search button click event in order to refresh
... more >>
DataGrid - if/else in edititemtemplate?
Posted by JW at 5/16/2004 12:44:09 AM
Greetings -
I am working with a DataGrid, and am trying to set up a template column for
a password field which is stored in a database. Basically, when the
"EditCommand" is executed, for the EditItemTemplate, I would like to display
a HyperLink if a password exists for this particular table r... more >>
|