all groups > asp.net datagrid control > february 2007
GridView RowEditing Requery question
Posted by dev648237923 at 2/28/2007 2:42:44 PM
I have a Requery() function for my data.
I call it when !Page.IsPostback to fill the grid (so I set the DataSource
and call DataBind manually).
Now my user clicks Edit in the grid so now RowEditing fires.
In RowEditing I do:
gv.EditIndex = e.NewEditIndex;
Requery();
That all works -- but... more >>
Where is the processing done - VS2005 Web development
Posted by AAJ at 2/27/2007 12:00:00 AM
Hi all
I use datagrids bound to Objectdatasources in turn bound to datatables
Every thing works Ok, but I'm curious on how it actually works.
I have a view in my SQL Server 2000 database. i.e. vw_KPITurnAround
I connect to the view via a XSD data table with something like
SELECT .... more >>
set dropdownlist selectedindex in datagrid
Posted by pleaseexplaintome NO[at]SPAM yahoo.com at 2/25/2007 2:52:54 PM
Hi all,
I have a datagrid with a dropdownlist and would like to have the
dropdownlist display a database value correctly while the grid is in
edit mode.
I have a templatecolumn as follows:
<asp:TemplateColumn HeaderText="New Route">
<HeaderStyle Width="0.5in"></HeaderStyle>
<ItemTemplat... more >>
GridView DropDownList events
Posted by dev648237923 at 2/22/2007 5:16:25 PM
When editing I show a DropDownList.
I want to show/hide a textbox next to that list if the user selects Other.
I've tried many ways but I can get it to work:
1.) If I knew the TextBox controls name/id I could just add an onchange
attribute to my DDL during RowDataBound and then put in some ja... more >>
DataGrid's Delete command does not work
Posted by alee via DotNetMonster.com at 2/19/2007 8:36:01 PM
Hello,
I defined an object source with GetData(), Insert(Object object), Update
(Object object),
Delete(Object object). When I connected the datasource to a DataGrid View
and
a Details View, ASP.NET worked well for all other commands except "Delete".
There is no response by either clicki... more >>
Datagrid to emulate Excel Spreadsheet
Posted by julian.tklim NO[at]SPAM gmail.com at 2/16/2007 11:38:07 PM
Hi,
I am totally new to .NET datagrid. Just want to explore the possbility
of datagrid.
I am currently using Microsoft OWC to launch Excel over the Web. As
OWC is going to be discontinue by Microsoft. Therefore, I would like
to use .NET datagrid to emulate Excel SpreadSheet over the Web (eg... more >>
why does this formview not appear?
Posted by Cliff at 2/14/2007 12:25:57 PM
Hi,
I expect with this code to see the FormView in the browser but nothing
appears (no error, no formview).
I checked with variable 'x' and i know there is one record in the dataset.
The formview must be editable.
Did i forget something?
Thanks for help.
code-behind:
-----------
Di... more >>
Not working for allow paging in datagrid
Posted by Krishna at 2/14/2007 1:01:05 AM
hi,
I developed one web application using visual studio 2005 and created
one new webforms with datagrid control and set AllowPaging="true".But it's
not work on it
my code is below.
<asp:DataGrid id="testgrid" runat="server" EnableViewState="true"
Width="100%" AutoGenerateColumns="F... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
edit multiple records in a gridview with one postback
Posted by archuleta37 at 2/9/2007 12:57:01 PM
I've got a asp.net 2.0 gridview with a list of orders. I want to add a column
with a checkbox (simple enough) and make it so that when I click a submit
button, the postback sets the status on each of the records with a checkbox
so that they are completed.
So in my gridview, I have the follo... more >>
GridView/FormView Issue
Posted by pbarbalias at 2/8/2007 11:52:07 AM
Hi to all.. I am new in asp.net 2..
I have a table with 3 fields. First name, Last Name, Description.
I've created a GridView page to show list of them and provide insert,
update, delete.
So far everything ok. When I click on a row, with FormView I have a
small popup and show
the fields t... more >>
Overriding Gridview Control
Posted by a at 2/8/2007 11:34:36 AM
Hi,
I want localize GridView Control
What i have override to change default text in CommandField: Edit,
Delete,Update... ?
thanx
... more >>
question about DataSourceMode
Posted by Dan at 2/8/2007 10:40:57 AM
Hi,
i defined a datalist and a datasource like this:
<asp:DataList ID="DataList1" runat="server">
......
</asp:DataList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$
ConnectionStrings:cat %>"
SelectCommand="select * from dbtable"
</asp:SqlDataSourc... more >>
problem to creating dynamically gidview
Posted by yogesh joshi at 2/7/2007 12:03:16 AM
when ever i m creating my dynamic gridview not by (asp:gridview). On the
click of the link button its not displaying anything..and if i m
using(asp:gridview) then its working properly..
so plz help me out
my code is..
GridView grid = new GridView();
SqlDataAdapter adp = ... more >>
how to use datareader with sqldatasource defined in aspx file?
Posted by Casper at 2/6/2007 11:06:18 AM
Hi,
i know how to use datareader in code-behind, e.g. like this:
Dim oConnection As OleDbConnection
Dim comd As OleDbCommand
Dim dtreader As OleDbDataReader
oConnection = New OleDbConnection()
oConnection.ConnectionString = Application("connect")
oConnection.Open... more >>
what's wrong with this code?
Posted by Chris at 2/5/2007 11:18:08 PM
Hi,
I want to limit the amount of data shown in a page coming from a database.
Everything works except that I get the error:
"Unable to cast object of type 'System.Web.UI.WebControls.SqlDataSource' to
type 'System.Collections.IEnumerable'"
on line: PageDataSource.DataSource = SqlDataSource2
... more >>
GridView.Rows empty on PostBack
Posted by Doldrums at 2/1/2007 7:04:49 AM
I have a GridView on my Asp.net page where I've added a TemplateField
that contains a CheckBox.
The idea is that a user can checkmark which records they want and then
click a "Submit" button. I want to take action in the PostBack for the
records that they selected.
My problem is that on... more >>
|