all groups > asp.net datagrid control > november 2003 > threads for november 22 - 28, 2003
Filter by week: 1 2 3 4 5
Data grid question
Posted by simon at 11/28/2003 9:57:54 AM
I have for example SQL statement:
SELECT categoryID,categoryName FROM categories
I can get products like this:
Select productId,productName from products where categoryId=@catID
If I bind this to dataGrid I want to have beside the categoryName also links
to products in this category.
... more >>
Paging a datagrid
Posted by Fabiano at 11/27/2003 8:57:23 PM
Please,
i've created a datagrid that allow numbered paging.
But when i click over a page that must be called, i get this error:
System.Web.HttpException: Invalid CurrentPageIndex value. It must be >= 0
and < the PageCount
at my page, on Paging Event i'm using the commands bellow:
priva... more >>
User Server control nested in DataGrid
Posted by met NO[at]SPAM konstrukt.de at 11/27/2003 3:31:51 PM
Hi all,
I am trying to create a web page where im displaying some information
in a datagrid and use a nested custom control in EditItemTemplate. In
Normal Modus it shows my Data as Label. If i go to Edit Modus it shows
me the DropDownList. That works fine and I can see the List.
If I want ... more >>
DataGrid Sorting - bidirectional
Posted by Snig at 11/27/2003 12:05:55 PM
Hi,
I want to sort the DataGrid according to the number of clicks of mouse on
the column-header link.
e.g.
if user clicks on the header once - it will be sorted ASC
if the header is double-clicked - it will be sorted DESC
It is not exactly toggling the sorting-order. I have seen a lot of m... more >>
DropDownList in DataGrid EditItemTemplate Return Error
Posted by rsw8n NO[at]SPAM bellsouth.net at 11/26/2003 11:18:44 AM
I have a dropdown list in the edititem template of a data grid. I
have no problems populating the dropdown box when I click edit.
However, if I edit and select a different item in the dropdown list I
always get the top value in the list returned in my UpdateCommand
event. Below is my code:
... more >>
Inverting DataGrid columns and rows in excel
Posted by Jack Mullins at 11/26/2003 7:31:15 AM
I am populating a datagrid and allowing it to be exported as an excel spreadsheet but my internal customer needs the columns and rows inverted. Any help will be appreciated. Asp.Net, Office XP, Visual Studio.Net 200
Jac
... more >>
Testing existance of a datagrid control on a webform
Posted by Iain Porter at 11/25/2003 3:43:36 PM
Hi all,
I have a usercontrol (a textbox with dropdown calendar that fills the
textbox with the selected date) that I implement in a datagrid in a webform.
On first loading the page, the datagrid's visibility is set to 'false', and
so the UC depCal is not rendered on the page. Hence the followin... more >>
Find what checkbox is checked in javascript
Posted by dave at 11/24/2003 7:45:46 PM
I have to sets of checkboxes. The second is to delete the row. So when I
click that checkbox I want to add it to an array. I also need to take it out
of that array when if click it again. I need to do this clientside
Dave
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Datagrid to Excel Question
Posted by Bart Lynn at 11/24/2003 6:37:11 PM
I have it working by the following code:
Response.Clear()
Response.Buffer = True
Response.ContentType = "application/vnd.ms-excel"
Response.Charset = ""
EnableViewState = False
Dim oStringWriter As System.IO.StringWriter
oStringWriter = New System.IO.StringWriter
Dim oHtmlTex... more >>
Passing Values from Header to footer of an DataList
Posted by snellog at 11/24/2003 3:56:16 PM
Hi
I have a TextBox and a Button in Header of a DataList and a Label in the Footer of a DataList. How to pass the value in the TextBox to Lable on click of the Button in the Header.... more >>
Dynamically Adding Bound Columns Won't Sort
Posted by Mark at 11/24/2003 2:02:47 PM
All-
I'm basically creating a user control which contains a datagrid that will be
used throughout our application by all pages.
My user control contains a datagrid control and I expose methods to add a
bound column to the grid.
So when they call this function and pass in the field name and ti... more >>
Hyperlink
Posted by Karl-Heinz at 11/24/2003 10:04:37 AM
Hello,
I'm using a link in a datagrid by the operand
"DataNavigateUrlFormatString=". I assume that the link only can activate a
new aspx-page. But the code and the datagrid definitions exist already in
the calling (the 1st) page.
My second datagrid, which already exists, should be activated... more >>
ASP.NET DataGrid and Excel
Posted by Milan Todorovic at 11/24/2003 9:31:18 AM
I desperately need help.
I have an ASP.NET (in VB.NET) app that displays the data within the datagrid
object. I need to allow for exporting of that data to the Excel spreadsheet.
I have tried using Excel (referenced) object, but for some reason I can't
get it to work. I get all sorts of COM er... more >>
Formatting decimals with 2 digits - 3.70 vs 3.7000 ???
Posted by bacile99 NO[at]SPAM yahoo.com at 11/24/2003 6:04:23 AM
I am formatting decimals on several columns within my DataGrid. For
the most part it is working correctly. However, 2 of the columns will
not format correctly. For example: the two columns that aren't
formating correctly are displaying 4 decimal places to the right.
Instead of getting: 3.70 ... more >>
How to sort a String column as Numeric?
Posted by bacile99 NO[at]SPAM yahoo.com at 11/24/2003 5:50:35 AM
I have a datagrid (dgResults) that I am populating from a SQL stored
procedure. After I fill my dataset (ds), I cache the dataset this
way: Session("ds") = ds.Tables("Table1").Defaultview. After this I
set the Grid's datasource to the dataset and bind the Grid.
My sort is working fine for al... more >>
Helper function inside template column
Posted by Chris at 11/24/2003 2:32:06 AM
Hi,
I need help with some c# syntax. I'm trying to call a
helper function from within a datagrid template column.
In VB.NET i'd do:
<%# Helper(Container.DataItem("item")) %>
However in c# I'm getting a bunch of syntax errors. Can
someone point in the right direction please?
Chee... more >>
TemplateColumn
Posted by Thomas at 11/23/2003 12:32:47 PM
Using C# code I would like to find out the Controls a
user places in a TemplateColumn. Is there a way to loop
through all the items in a TemplateColumn? Thanks.... more >>
BC30451: Name 'BindDataGrid' is not declared.
Posted by TJS at 11/22/2003 1:26:04 PM
trying to allow sorting in a datagrid
I don't understand error message - can u help ???
sql:
=====
SelectCommand = "SELECT * FROM tblA WHERE id = '" & vid & "'
order by " & strSortField
grid control:
===============
<asp:datagrid id="Grid" style="Z-INDEX: 101" ru... more >>
|