all groups > asp.net datagrid control > june 2006
Filter by week: 1 2 3 4 5
DataGrid Multi Header
Posted by Etariq at 6/30/2006 4:20:29 PM
Hi Coders
How Can You Build A Dynamic Multi Header GridView Control
thanks In advance
... more >>
Grid Refresh!!!
Posted by Vai2000 at 6/30/2006 4:09:23 PM
Hi All, I have a grid which binds to a select on a SQL Db. New rows are
constantly being added up to the table. How can I take adv. of Atlas to
refresh on my page when the data changes...? For now I do a refresh every 5
seconds.
TIA
... more >>
repeater or datalist
Posted by rockdale at 6/30/2006 8:48:59 AM
Hi all
I have two tables in my database invoiceHeader and invoiceDetail.
invoiceHeader contains store_id, inv_date, inv_id and other summary
info.
invoiceDetail contains inv_id, item_id, unit_price and purchase_amount
my customer want to about print all invoices at a certain date for a... more >>
GridView_Sorting() Event fires twice?
Posted by Whitney Yiu at 6/28/2006 11:50:02 AM
I have a gridview object, and i have bound it to data. I created a sort
method, and have set it so that when the gridview heading is clicked on, it
should sort the gridview (the [gridview]_sorting() method fires when a
heading is called, and then my sort method is called within there).
My s... more >>
GridView when Empty
Posted by donald at 6/28/2006 6:30:20 AM
Hi there,
I got a GridView and when I have no data in it. it just doesn't appear
on the page i just want the header and footer to show?
Also if possiable for it to say "no data" where the item would be?
Thanks
Donald
... more >>
dynamic columns and datagrid items
Posted by SMai24 NO[at]SPAM gmail.com at 6/28/2006 6:18:42 AM
I created 4 boundcolumns dynamically or programmatically and bind them
to a datasource, when client click on a button before posting back to
the server, i am trying to extract the data from the datagrid throught
its datagrid.items, but nothing is there(count = 0). Does anyone have
any clues abou... more >>
How to get checkbox value from datagrid...
Posted by JLuv at 6/27/2006 12:25:01 PM
right now i'm trying the method...
int i = 0;
foreach (DataGridItem dgItem in pGrid.Items) //(int i = 0; i <
pGrid.Items.Count; i++)
{
if (((CheckBox)dgItem.FindControl("check")).Checked)
{
i++;
}
}
Response.Write(i);
just to see if i'm gett... more >>
HyperLink in DataList?
Posted by rockdale at 6/27/2006 7:31:19 AM
nside itemtemplate of my DataList I have
<td>
<asp:HyperLink runat="server" Text='<%#
DataBinder.Eval(Container.DataItem, "funcDesc") %>'
NavigateUrl='../Default.aspx?fID=<%#
DataBinder.Eval(Container.DataItem,"funcId") %>'
ID="Hyperlink1"></asp:HyperLink>
</td>
<td>
<a href='Default.aspx... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Checkbox in template coloumn
Posted by ClearConcepts at 6/25/2006 1:54:26 AM
Hi,
I am using checkbox in template column of datagrid in aspx page.
I am fetching boolean field from database and binding to this template
column.
If the values is "true" checkbox should checkd. otherwise it should be
unchecked.
How to do this?
Please suggest me
--
Regards
... more >>
Sub in GridView delete error
Posted by David at 6/23/2006 5:15:46 PM
I am getting "Object reference not set to an instance of an object."
when I try to set the value of a string variable in a OnDelete method of sql
command subroutine. Can anyone help with the syntax? Below is code:
Sub On_Subfile_Deleting(ByVal source As Object, ByVal e As
SqlDataSourceComm... more >>
Datagrid with AJAX
Posted by CC at 6/22/2006 3:55:43 PM
Hello to everyone. First of all excuse my very poor english. This comes from
Spain.
I´ve a datagrid with textboxes and checkboxes. User makes changes, but
changes are made only when user press a button.
Now i´ve to change it, and make changes (updates in database) in
'background' each ti... more >>
Controling Datasources
Posted by barryfz at 6/22/2006 11:28:23 AM
I am working with the new datasource component which I guess is a
replacement for the dataadapter/dataset cmoponents. I guess it is cool that
I can hook these up without writing any code behind now (does anybody in
asp.net use the vs studio gui for anything but a notepad substititue, all i
s... more >>
Datetime selecection from datagrid edit item Mode
Posted by Santosh at 6/21/2006 9:40:22 PM
Dear all i am using datetime field in datagrid when it is in edit mode
i want to user select datetime from calender control. and user
selected datetime value will be asigned to the datagrid datetime
field.so can any one help me how i can do it.
-Santosh
... more >>
Pass value of hidden fields in Gridview to SQL parameter
Posted by Hennie at 6/20/2006 3:18:42 PM
How can I pass the value of a hidden field to the Parameter?
Thanks
... more >>
Grid Challenge!!!
Posted by Vai2000 at 6/20/2006 8:04:01 AM
Hi All, Here's my query
SELECT type, price, advance
FROM titles
WHERE type LIKE '%cook'
ORDER BY type
COMPUTE SUM(price)
I need to bind the recordset to a grid View and show the SUM on a label.
How do I go with it ?
I am not coding a single line (that's the main part)...using Wizard... more >>
GridView Formatting Issues
Posted by Jay Lauffer at 6/19/2006 5:10:03 PM
Hello,
I'm having problems getting the html table generated from GridView to meet
the expected output format. I want to fix certain column widths, when I use
the ItemStyle or ControlStyle widths they appear to make no difference.
I saw another similar posting with no replies, is this simp... more >>
datagrid format
Posted by Dan at 6/18/2006 3:11:09 PM
I set properties (pagesize, navigation mode) for the datagrid in the
properties dialog box. When I run it locally with RunInBrowser these
settings are ignored. Other settings such as column width, font are obeyed.
Coded in VB. The datasource is set when the page is opened. I tried coding
th... more >>
how to get value of datarow column on ItemDataBound
Posted by xzzy at 6/17/2006 8:51:51 PM
For each row in a dataset bound to a datagrid, each row can differ by
MyType ( ie 1, 2, 3, . . . ).
for different MyType, I need to call different javascript functions and pass
the values in the datagrid's cells
Problem: no values are passed to the javascript functions.
protected void D... more >>
Tree View Event Problem
Posted by Santosh at 6/16/2006 3:20:45 AM
Dear all,
I am using tree view control when i am click on nodes i want to find
whether my selected node is parent or child. so please help me how i
can do it please help me.
Regards
Santosh Shinde.
... more >>
Command Argument
Posted by Anuradha at 6/16/2006 12:00:00 AM
hi,
Can we pass Two different vales in a single command argument of a Datalist.
If Yes..How?
Thanks in Advance
Anuradha.
... more >>
auto generated javascript function __doPostBack(eventTarget, eventArgument) - edit the function name?
Posted by TJ at 6/15/2006 11:48:15 AM
Is it possible to edit the auto generated javascript function names? I'm
working in a Plumtree portal and I have two portlets on the same page using
a datagrid control. The paging links from the first grid are causing
postback for the second grid that's further down the page. Long story
... more >>
How to bind data to asp.net tree view control
Posted by Santosh at 6/14/2006 2:56:55 AM
Dear all i am using IE tree view web control i want to bind datad to it
can any body tell me
how i can bind?
Regards
Santosh.
... more >>
context menu of GridView
Posted by CSharpGuy at 6/13/2006 8:45:41 AM
Is it possible to create a 'context menu' for my GridView?
What I need to when the user clicks on a row in my gridview I need to show a
menu with links to a details page for that row of data.
... more >>
How to use tree view controll
Posted by Santosh at 6/13/2006 12:02:27 AM
dear all i am download treeview controll from
http://www.asp.net/ControlGallery/ControlDetail.aspx? but i don't know
how to use it with in a my page can anybody help me?
Regards
Santosh Shinde.
... more >>
to the Master's
Posted by Bruno Alexandre at 6/13/2006 12:00:00 AM
Hi,
Regarding ASP.NET 2.0 and especially the Wizard Component
How can I validate a Step (using Javascript - no Callbacks or Pagebacks)?
I can't find anything relative to this, only a Microsoft page saying that
the Wizard performs the ValidatePage() javascript but even if I enter it in... more >>
how to make check box in different columns in datagrid mutually exclusive
Posted by xonet at 6/12/2006 9:54:12 AM
I have three columns in a datagrid which are checkboxes. Each checkbox
is in an itemtemple in the template column of datagrid. I want to make
these mutually exclusive.
If anyone has tried doing something like this before, please help.
Any help is appreciated,
Thanks
... more >>
add a new row with totals - gridview
Posted by John at 6/9/2006 11:01:30 AM
have a gridview where I need to add totals for each grouped data,
example
my grid looks like this
Sales 2006:
BMW 100
Lexus 75
Mercedes 70
Total Sales: 245
Sales 2005:
BMW 90
Lexus 40... more >>
User Conformation On datagrid update command
Posted by Santosh at 6/9/2006 7:07:29 AM
Dear all i want to call javascript function for asking user to conform
about specific action
i am writting following code but when i am click on update & cancel
same function is called
so please tell me solution behind them.
i want to call java script function on only update button
publ... more >>
Showing Images On DataGrid Column
Posted by Coder at 6/8/2006 11:09:47 PM
I am developing a dating site and on this site, in search result page, I
wanna use a datagrid to show the people information
One of the column must show images of peoples,and these images will be
placed on a directory
How can I do ?
... more >>
Postback does not maintain sort direction Image?
Posted by rockdale at 6/8/2006 7:50:30 AM
Hi, All:
I dynamic add an arrow up/down image in OnItemDataBound event for my
datagrid, it works fine. But I have another textbox which trigger
postback and doing something, after this event get executed, I lost the
image but the datagrid maintain the same sort order. Should the
datagrid remain... more >>
GridView and NextButtonClick
Posted by Bruno Alexandre at 6/7/2006 6:34:14 PM
Hi guys,
I need your expertise on this, cause I can't figure it out why this is
happening.
I have a GridView with a lot of steps, but in step 3 I want to stay there
until I have all the information I need
(the user is adding the previuos houses for the latest 5 years, and until I
have all... more >>
How to Delete Items in a DataGrid Web Server Control
Posted by tom c at 6/7/2006 12:02:47 PM
In this walkthrough on "Allowing Users to Delete Items in a DataGrid
Web Server Control" at:
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/vbcon/html/vbtskallowinguserstodeleteitemsindatagridwebcontrol.htm
it leaves out some very important code. Here is what it gives you:
' Visual Basi... more >>
gridview formatting
Posted by John at 6/7/2006 11:27:02 AM
On my gridview I need to group the sales by year.
2000 - 2001 - 2002, etc is there a way to do this with using the gridview?
example:
sales for: 2000
data
blank row
sales for: 2001
data
blank row
now the data that is being pulled back to populate the gri... more >>
New to ASP.Net, Cascading DropDown List in Detail View...Please help
Posted by Sam at 6/7/2006 6:48:29 AM
A) Destination Table with 4 Fields.
1) Last Name
2) First Name
3) State
4) Zip Code.
B) Look up table State/Zip Code with 2 Fields
1) State
2) Zip Code.
I created a DetailView Form in Asp.net to Insert/Update Destination
Table. Destination Table's State and Zip Code Fields are... more >>
Datagrid invisible TemplateColumn dose not generate HTML object?
Posted by rockdale at 6/6/2006 1:20:47 PM
Hi, All:
I have a datagrid with TemplateColumn as following:
<asp:TemplateColumn Visible="False" >
<ItemStyle Width="0px"></ItemStyle>
<ItemTemplate>
<asp:Label id="lblMin_Value" Visible=False runat="server" Text='<%#
DataBinder.Eval(Container, "DataItem.min_value") %>'>
</asp:Label>
... more >>
Using a DateTime as a DataKeyField
Posted by Keith Patrick at 6/6/2006 10:02:47 AM
I have a DataGrid that uses a DateTime coming back from the DB as its
DataKeyField, since that timestamp is the only unique ID I have for the
records I am displaying. The problem is that the DateTime is being stored
down to the second rather than to the millisecond, which ruins the ID. Is
... more >>
How to change data in grid after you change the SQL select for the data adapter
Posted by tom c at 6/5/2006 7:15:20 PM
I have an ASP.net webform with a datagrid on it.
I can change the SQL select statement for the grid in code by putting
a statement like this in the first line of Page_Load
OleDbDataAdapter1.SelectCommand.CommandText = "SELECT * from table
where ... "
The rest of the code in Sub Page_Load is... more >>
When do you call DataGrid.DataBind()
Posted by Water Cooler v2 at 6/5/2006 1:44:11 PM
Sometimes, you call DataGrid.DataBind() after doing a
DataGrid.DataSource = DataSet (or reader)
and sometimes you don't. When is it that you have to call DataBind on
the datagrid and when is it not necessary? Why is there the difference?
... more >>
Validate User Input before calling java script function
Posted by Santosh at 6/3/2006 4:53:43 AM
Hii i am writting a code for adding a user records but i want to
activate required filed validator before displaying conform addition
messagebox
i am writtng following code but it is never work please tell me that
what is solution behind them.
public void SetUpClientValidation(object send... more >>
GridView: max # of columns?
Posted by Mark Peacock at 6/2/2006 12:59:01 PM
Is there a recommended or enforced maximum # of columns in the 2.0 GridView?
I have a view with 32,000+ rows and 39 columns that I am displaying using
the GridView control. With paging enabled, the time it took to move between
pages was in the range of 2 to 5 minutes. The bottleneck was proba... more >>
How to set bach-color of textbox in datagrid same as AlternatingItemStyle
Posted by rockdale.green NO[at]SPAM gmail.com at 6/2/2006 12:33:37 PM
Hi, All
I have an datagrid with alternating color, I also want the back-color
of my textbox in ItemTemplate also appears alternating, how could I do
that?
<asp:datagrid id="dgridEmpHours" width="100%" runat="server"
DataKeyField="employee_key" AutoGenerateColumns="False"
BorderWidth="... more >>
DropDownList Datagrid issues
Posted by msingh.russelmetals NO[at]SPAM gmail.com at 6/2/2006 10:28:30 AM
Hello everybody.
I have a DropDownList in my Datagrid.
The DropDownList is prepopulated with data.
I'm capturing the event OnItemDataBound, and as the rows are populated
I'm selecting the correct index in my DropDownList based on a value for
that row.
My issue is that it seems that inste... more >>
Raising GridView's SelectedIndexChanged event in ASP .net 2.0
Posted by Jay at 6/1/2006 2:38:02 PM
Hello,
I am populating the data from the DataView in my GridView. I want to
raise the SelectedIndexChanged Event or the RowCommand event when I click any
where on any of the rows in the GridView. All my columns are "BoundField"s
and the "DataField" property is set to a column in the... more >>
|