all groups > asp.net datagrid control > october 2005
Filter by week: 1 2 3 4 5
how to turn off DataGrid header
Posted by TJ at 10/31/2005 11:10:04 AM
I want to show the column, yes. I just don't want to show the column's
header. Was hoping to do this in the .aspx and not the code behind.
Thoughts?
... more >>
wiring up a datagrid button
Posted by martinharvey via DotNetMonster.com at 10/29/2005 7:48:38 AM
This is probably a very simple problem but i would appreciate some help.
I have wired up a datagrid button with the following code.
Sub AddProduct(sender As Object, e As DataGridCommandEventArgs)
Dim ProductID As Integer = CType(dg.DataKeys(e.Item.ItemIndex), Integer)
' Create the c... more >>
Select a row (on left click) without postback
Posted by mystiqu at 10/28/2005 12:00:00 AM
Hi!
I wonder if it is possible to select a full row in the datagrid whe
the user left-clicks in it without using postback.
I guess it can be done using javascript but I don´t know how.
Any help is appreciated.
Regards
Mikae
--
mystiq
----------------------------------------------... more >>
asdf
Posted by geeta at 10/27/2005 10:19:26 AM
binding combobox control to datagrid
Posted by geeta at 10/27/2005 12:00:00 AM
,
i am facing problem with attaching combobox to a cell of a datagrid. namely
to the cell 3rd row 4 column..
then the combobox should display that content of that particular cell...
can anyone help me in this
Thanks
Geeta
... more >>
Single Quote Problem in Excel to Export
Posted by Prasad Dannani at 10/26/2005 11:04:05 PM
Hi,
We have to export our data in sql server table to any excel sheet. We have a
template to export, using oledb we are inserting rows to this template and
generating the excel output.
The problem here is we are getting a single quote extra in front of each
cell. can anyone help us in clear... more >>
Binding combobox to a cell of a datagrid in windows forms using c
Posted by Get at 10/25/2005 9:12:01 PM
hi,
i am facing problem with datagrid..
i am attaching a combox to a cell of a datagrid.means i want to palce the
combox in 4th row 3rd col of grid.and the combox should represent value of
that particular cell....i am using .net 2003 version
can anyone help me in thais regard.
thanks in... more >>
Long list of items in my datagrid, editing is a pain!!
Posted by David Lozzi at 10/25/2005 4:26:33 PM
Hello,
I'm loading a datagrid from an XML file. I'm using datagrids edit
functionality and its working great. My problem is that this list is 667
records. When I press Edit the page reloads and starts at the top. Then I
have to scroll all the way down to get back to the item I'm editing. I... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
nested datagrids
Posted by Sue at 10/25/2005 2:33:03 PM
Help! Using nested datagrids in web app using VStudio 2003, IIS, SQLServer.
Got the data to load just find in both the outer and inner datagrids. I need
to capture a "select" button click in the inner datagrid, pull the value of
the button text from the clicked
button, and use the value to cal... more >>
Contents of ButtonColumn and HyperLinkColumn
Posted by treilly via DotNetMonster.com at 10/24/2005 8:55:03 PM
Hi,
Does anyone know how to get the contents OUT of a ButtonColumn item or a
HyperLinkColumn Item in C#?
For BoundColumns, it's extremely easy - e.items.cells[0].Text.
This does not work with ButtonColumns or HyperLinkColumns.
It should be SO simple, yet I've searched forever on google and ha... more >>
"Invalid CurrentPageIndex value. It must be >= 0 and < the PageCount. "
Posted by Franck at 10/21/2005 10:04:38 AM
Hello,
in a datagrid, in the ItemDataBound event
in some cells a add some javascript that show up an information
strHref.Append("<A onclick=\"popupValid();\">");
strHref.Append("<span style=\"cursor:pointer\">");
strHref.Append(e.Item.Cells[1].Text+"</span></A>");
e.Item.Cells[1].Text=strH... more >>
Optimizing binding
Posted by Tumurbaatar S. at 10/21/2005 12:00:00 AM
All my datagrids need editing, deleting, sorting and paging. Datagrid's view
state is enabled,
but it is disabled it for each DataGridItem after binding. Also, I use
DataAdapter instead of
DataReader because the last one does not work with paging and sorting.
My typical data binding code look... more >>
my DataView won't sort
Posted by bill at 10/20/2005 2:58:25 PM
When I set the Sort on a DataView, it is ignored, and I can't figure out
why. I'm using vb.net.
After I successfully populate the DataView, I set the Sort on a String
column, but it doesn't happen, and consequently my datagrid which is bound
to the DataView doesn't get sorted.
There are no... more >>
Gridview - Row Update Event Not Firing When grid has invisible col
Posted by RickM at 10/20/2005 11:28:10 AM
..net 2.0 Visual Studio 2005 beta 2 Gridview
I am hiding and displaying columns in a gridview based upon user's
selection. The Row Updating event is not firing when I have invisible
TemplateField Columns. If I change all columns to Visible, the event fires.
If I make one column invisible... more >>
Export to Excel
Posted by Magnus Blomberg at 10/20/2005 9:25:41 AM
Hello!
I have a web page (dotnet framework 2.0) with a datagrid that works just
fine.
When the user has collected the data, and this is present in the datagrid, I
would like to enable a button for export to Excel.
If possible, I would also like the asp code to format the Excel sheet so it
lo... more >>
DataGrid Select Button Event not fired
Posted by sathya at 10/19/2005 10:49:02 PM
hi all,
i am creating datagrid , i have added button column in my datagrid ,but
the event for button column is not fired.
i have added buttoncolumn to datagrid as shown below:
ButtonColumn bs = new ButtonColumn();
bs.Text = "select";
bs.ButtonType = ButtonColumnType.PushButton;
DataGrid... more >>
.net 2.0 FormView questions
Posted by Jeronimo Bertran at 10/19/2005 9:48:09 PM
Hello,
I have a couple of questions about the FormView control.
How can I access the controls I add to the ItemTemplate from the code
behind file? For example, I added a button named Button1 to the
ItemTemplate and I want to modify it from the codebehind.
Can I set the pager to appea... more >>
Problem connecting to Oracle database
Posted by Jaime Stuardo at 10/19/2005 5:39:04 AM
Hi all...
I have an ASP.NET application where I placed a DataSource control connected
to an Oracle 7.3.4 database using MSDAORA provider.
When I configured the connection string I chose Oracle Database as the data
source and .NET Framework Data Provider for OLEDB as the data provider.
I... more >>
How do I databind a TextBox in EditItemTemplate?
Posted by morrisb at 10/19/2005 5:05:02 AM
Simply put - I want the data in my rows to appear in various controls when I
click Edit.
My datagrid contains several template columns and I'm using
DataBinder.Eval(Container.DataItem, fieldname) to bind data in my
ItemTemplates.
However, I can't seem to use it for the TextBoxes in my Ed... more >>
Update Custom Collection that is bound to DataGrid made up of Custom COlumns
Posted by Terry Holland at 10/19/2005 12:00:00 AM
I recieved some very useful help from Steven Cheng in an earlier post in
this group entitled 'Dynamically create datagrid columns' and am now
looking for some help to progress things.
With the help I was given I was able to create a web user control that
dynamically created a datagrid that... more >>
and null fields in a datagrid
Posted by Tina at 10/18/2005 3:58:47 PM
in the itemDatabound event of a datagrid, both null fields and blank string
come through as in the e.items.cells field. Is there anyway to tell
them apart?
Thanks,
T
... more >>
datagrid checkbox list edit item not working
Posted by cindy at 10/18/2005 12:40:13 PM
I am using asp template columns. I display box values from a lookup table.
The datagrid displays field "bookid" and the checkbox displays "category"
field for the book. The category field is a string concatenation of category
values such as CT,MR,NM or just CT
When the grid goes into edit ... more >>
What to do about checkboxes?
Posted by et at 10/18/2005 9:03:14 AM
I have a grid with odds and ends of data, some of the fields are true/false
checkboxes. The users don't like the fact that the checkboxes are
modifiable even when not in edit mode.
What does everyone else do about this? Disable it? change it to display
Yes/No, True/False, or something el... more >>
plz give me this code in C#
Posted by narula srinivas at 10/17/2005 9:33:21 AM
hi friends,
thanks for helping in my previous problem.could anyone take this
site as and give the c# code for the concerned related requirement.i am
getting lot of errors.
http://www.koolsoft.com/DataGridCheckboxes.aspx
thanks®ards
srinivas.N... more >>
DataAdapter question
Posted by Eric A. Johnson at 10/17/2005 5:43:47 AM
I'm using ADO style. I have an Access database with four tables that I will
want to do queries on. I will want to do queries on all four tables, at
least individually, and possibly at the same time (using "INNER JOIN"). My
question: Is it better to have four individual DataAdapters, one for ... more >>
Define a filter based on record value
Posted by PaulNaude at 10/17/2005 1:46:05 AM
I have a datagrid with two columns visible, both being dropdown boxes linked
to other tables.
Is it possible to filter the datasource of the second column, based on the
value chosen in the first column?
... more >>
Fixing Column Widths Permanently
Posted by DarthMcAdam at 10/14/2005 6:34:30 AM
I have a datagrid that I'm using to show a list of hierarchical data,
much like a tree-view. I won't go into the detail, suffice to say that
the reason I'm doing this is because of the poor quality of the data
(imported from a legacy system) and the manner in which the database
has had to be de... more >>
DATAtable basics..?
Posted by ¿_Mahesh_Kumar at 10/13/2005 10:17:02 PM
I have created a datatable as mydatatable and pointed that table to =
gridview...AM I CORRECT below..
---------------------------------
DataTable myDatatable=3Dnew DataTable("ParentTable");
DataColumn myDataColumn=3Dnew DataColumn();
DataRow myDataRow;
myDataColumn =3D new DataColu... more >>
Create User Controls dynamically
Posted by David Lozzi at 10/13/2005 1:37:16 AM
Howdy,
I have a user control that needs to be displayed X amount of times on one
page. How is this done? I was thinking of putting it into a datagrid, which
would work, but is there a better way?
Thanks!
--
David Lozzi
Web Applications Developer
dlozzi@(remove-this)delphi-ts.com
... more >>
GridView reload for the updated records.
Posted by Devendra at 10/13/2005 12:00:00 AM
Hi
Is there any way that I can call a vb function from Javascript .........
Scenario
I have a search which shows output in a gridview. I have one Select
commandButton which opens a pop-up window using showModalDialog()
After I edit the record and close the pop-up window, I need to update t... more >>
Number of rows in a datagrid
Posted by PaulNaude at 10/12/2005 6:42:03 AM
I discovered the hard way that the property "VisibleRowCount" of a datagrid
is ONLY that, the number of visible rows, NOT the number of populated rows in
the datagrid.
I need the number of populated rows (i.e. the number of records the user has
access to by scrolling to the end of the list)... more >>
csv to datagrid
Posted by Stanley Cheung at 10/12/2005 12:00:00 AM
Hi all,
How can I import a csv file and display as a datagrid directly.
Now, I am using datatable to bind to datagrid, but I got the problem for
sorting and paging, i don't know how to make a sorting and paging.
Do I need to store data into dataset and sqldataadapter?
I am using c#.
Than... more >>
datagrid can't get value to do insert
Posted by cindy at 10/11/2005 4:50:03 PM
I am trying to get the value out of a datagrid please help
Getting error
Object reference not set to an instance of an object.
at line
newComment = ((TextBox)item.Cells[1].FindControl("txtComment")).Text;
data binds and displays fine
I enter value in textbox for comment
click the inse... more >>
Someone Has To Have An Answer ???
Posted by Jay at 10/10/2005 4:55:36 PM
I have posted this same question several times, however, no one seems to
have any idea how to accomplish this task.
I have a fairly long datagrid that spans several pages when printed.
Problem is, when printed, the last row of each page tends to get cut off.
Ideally what I would like is to ... more >>
Capture events on controls in template columns
Posted by daniel kurtz at 10/10/2005 3:05:51 PM
Fixing the format of my datagrid
Posted by daniel kurtz at 10/10/2005 11:04:00 AM
My grid keeps dynamically resizing as I bind data to it. What I want is to
display 10 rows, each with a fixed height... or if the particular page has
fewer than 10 items, the actual number of items plus enough white space to
fill out the equivelant of 10 rows (blank rows might be OK) and 6 col... more >>
Databinder.Eval passed as argument is choking
Posted by TJ at 10/10/2005 10:21:19 AM
I have a datagrid that has a boolean column. The sql data is a bit stored
as a 1 or 0. Doing a straight up DataBinder.Eval(Container.DataItem,
"MyColumn") displays a "True" or "False" in the grid. No problems here.
What I want is for it to display a "Yes" or "No". So I'm using a
Templat... more >>
How to add a hyperlink column to a datagrid in a windows application
Posted by shinuda NO[at]SPAM hotmail.com at 10/9/2005 10:30:50 PM
Hi
I am making a windows application that sorts information in a datagrid.
The datagrid is bound to a datatable and a table style to control the
spacing the the order of columns.
Now i want to add a hyperlink column to the datagrid so that it when
you click it, it opens another window with th... more >>
Template database ASP.NET app.
Posted by Andrew Chalk at 10/8/2005 3:21:15 PM
I am planning on building my first ASP.NET application that accesses a
database. Can anyone pont me at a template application to use as a basis for
this?
Many thanks.
... more >>
DataGrid Not Sorting
Posted by Michael Caruso at 10/6/2005 11:29:01 AM
My web datagrid isn't sorting at all. I have it wired up to a handler, and I
know the handler is working (being called), but no sorting. The page just
posts back with the same data. I hhave verified that the SortExpression
values are the column names. I used the VS IDE to create a datasour... more >>
How to get the selected ROW NO.. in a grid view control..?
Posted by ¿_Mahesh_Kumar at 10/6/2005 12:00:00 AM
I have placed select, update, delete in a grid view of ASP.NET 2.0. I =
want to fetch the selected row no when i click on select button on that =
grid. The grid view items are dynamic in length. How can i achieve this =
in runtime..?
Mahesh
www.snipurl.com/guac... more >>
Printing - Really Need Help!
Posted by Jay at 10/4/2005 11:11:41 AM
I have been searching and searching and searching for a way to print a
lengthy datagrid on multiple pages and persist the header. I also do not
want the last datagrid row on the page to be cut off when printing. Any
ideas, examples, links, etc.?
I do not have access to Reporting Services ... more >>
When you bind an array to a datagrid, what's the field name?
Posted by Jon Edney at 10/4/2005 9:50:04 AM
In ASP.NET v2.0, I can successfully bind a generic datagrid to a 1 dimensional
array. But, now I want to customise the column header. I think I need to
make the first column (the one having data in the array) a "BoundColumn" and
set the HeaderText property, but the problem is that the BoundColu... more >>
DataGrid Row Disappears when click edit??
Posted by Assimalyst at 10/4/2005 7:56:11 AM
Hi,
I have a datagrid DataBound with the following code:
private void SampleSearch()
{
// set search strings
int intUserNo = (int)(Session["usrNo"]);
string strPatientCode = patientCodeTxtBx.Text;
DateTime dateProcedureDate = DateTime.Parse(procedureDateTxtBx.Text);
// set param... more >>
Newbie Question - Datagrid Results
Posted by Keith at 10/3/2005 2:45:59 PM
Is there a way to display the field you are GROUPING BY in a datagrid? =
I am doing a select count and using the GROUP BY option to display the =
results. When the results are displayed in the datagrid it just shows =
the results but not the field it is being GROUPED BY (probably getting =
wh... more >>
Regenerating a Datagrid
Posted by Shahir A. Ahang at 10/3/2005 2:37:57 PM
All,
I am wondering if there is a way to regenerate a datagrid which has already
been bound to a dataset WITHOUT having to re-query the data source.
In my page, I have a drop-down control which is populated through a SQL
query. Once the user selects a value from the drop-down, the datagri... more >>
SelectedIndex Value Reported Incorrectly
Posted by Nathan Sokalski at 10/3/2005 12:53:36 PM
I am writing a User Control that uses 3 DropDownLists. When I attempt to
access the SelectedIndex property it incorrectly reports the value selected
by the user. Why is this? Here is my code, thanks:
Public Class DatePicker
Inherits System.Web.UI.UserControl
#Region " Web Form Desig... more >>
Getting the column from a table cell
Posted by zahidayar NO[at]SPAM gmail.com at 10/3/2005 5:03:05 AM
Hello everyone,
Is it possible (and if so, how) to obtain a reference to the column
given a table cell for a datagrid?
Zahid
... more >>
Create Columns at run time
Posted by Tina at 10/1/2005 5:46:05 PM
if you place a datagrid on a form and then, in Property builder, check the
box saying Create Columns at run time. An then do a SQL Select into a
datatable, and then bind the datatable to the grid, the grid displays
correctly. BUT, the columns array is empty. The grid displays just fine.
T... more >>
|