Hi all,
I have been struggling with datagrid for more than a week. I pretty new
to datagrid, have never used it before.
All I am trying to do is Edit the TDBGrid in Visual basic. I am
populating the Datagrid from a adodb recordset. Here is my code
Dim rssqldb As ADODB.Recordset
Set rssqldb = gfGetData(Conn, 10, "exec payroll" & "'12/01/06'")
TDBGRID1.datasource = rs
I have set the properties for allowupdate,allowinsert, etc to be true.
Datamode is in bound mode.
I can see the data in the Datagrid, but cannot edit it. Can anyone pls
Help! 4 2262
juyja,
The datagrid is not mad for a recordset. What is in fact also not with
complete dotnet.
Can you tell a little bit what you want because the datagrid exist as Web
and windowform media.
In fact it is using a datatable and than a dataadapter.
As well tell what kind of database you are using, maybe we have than a
sample for you.
Cor
"juya" <ma******@yahoo.comschreef in bericht
news:11*********************@73g2000cwn.googlegrou ps.com...
Hi all,
I have been struggling with datagrid for more than a week. I pretty new
to datagrid, have never used it before.
All I am trying to do is Edit the TDBGrid in Visual basic. I am
populating the Datagrid from a adodb recordset. Here is my code
Dim rssqldb As ADODB.Recordset
Set rssqldb = gfGetData(Conn, 10, "exec payroll" & "'12/01/06'")
TDBGRID1.datasource = rs
I have set the properties for allowupdate,allowinsert, etc to be true.
Datamode is in bound mode.
I can see the data in the Datagrid, but cannot edit it. Can anyone pls
Help!
juya wrote:
Hi all,
I have been struggling with datagrid for more than a week. I pretty new
to datagrid, have never used it before.
All I am trying to do is Edit the TDBGrid in Visual basic. I am
populating the Datagrid from a adodb recordset. Here is my code
Dim rssqldb As ADODB.Recordset
Set rssqldb = gfGetData(Conn, 10, "exec payroll" & "'12/01/06'")
TDBGRID1.datasource = rs
I have set the properties for allowupdate,allowinsert, etc to be true.
Datamode is in bound mode.
I can see the data in the Datagrid, but cannot edit it. Can anyone pls
Help!
Check out this link: http://aspnet.4guysfromrolla.com/articles/040502-1.aspx
Datagrids are not very easy to work with. Are you using the visual
designer, or strictly source code ?
I think you need to write code to handle the edit. I think I got this
working once by tweaking the datagrid properties from the form designer.
The database is sql server. I am also using visual basic. Thanks and
any help would be greatly appreciated.
Cor Ligthert [MVP] wrote:
juyja,
The datagrid is not mad for a recordset. What is in fact also not with
complete dotnet.
Can you tell a little bit what you want because the datagrid exist as Web
and windowform media.
In fact it is using a datatable and than a dataadapter.
As well tell what kind of database you are using, maybe we have than a
sample for you.
Cor
"juya" <ma******@yahoo.comschreef in bericht
news:11*********************@73g2000cwn.googlegrou ps.com...
Hi all,
I have been struggling with datagrid for more than a week. I pretty new
to datagrid, have never used it before.
All I am trying to do is Edit the TDBGrid in Visual basic. I am
populating the Datagrid from a adodb recordset. Here is my code
Dim rssqldb As ADODB.Recordset
Set rssqldb = gfGetData(Conn, 10, "exec payroll" & "'12/01/06'")
TDBGRID1.datasource = rs
I have set the properties for allowupdate,allowinsert, etc to be true.
Datamode is in bound mode.
I can see the data in the Datagrid, but cannot edit it. Can anyone pls
Help!
Juya,
The database is sql server. I am also using visual basic. Thanks and
any help would be greatly appreciated.
That was not my question
Repeating, is it for a web or a windowsform application.
In other words is it ASPNET or not.
Cor
"juya" <ma******@yahoo.comschreef in bericht
news:11*********************@l12g2000cwl.googlegro ups.com...
The database is sql server. I am also using visual basic. Thanks and
any help would be greatly appreciated.
Cor Ligthert [MVP] wrote:
>juyja,
The datagrid is not mad for a recordset. What is in fact also not with complete dotnet.
Can you tell a little bit what you want because the datagrid exist as Web and windowform media.
In fact it is using a datatable and than a dataadapter.
As well tell what kind of database you are using, maybe we have than a sample for you.
Cor
"juya" <ma******@yahoo.comschreef in bericht news:11*********************@73g2000cwn.googlegro ups.com...
Hi all,
I have been struggling with datagrid for more than a week. I pretty new
to datagrid, have never used it before.
All I am trying to do is Edit the TDBGrid in Visual basic. I am
populating the Datagrid from a adodb recordset. Here is my code
Dim rssqldb As ADODB.Recordset
Set rssqldb = gfGetData(Conn, 10, "exec payroll" & "'12/01/06'")
TDBGRID1.datasource = rs
I have set the properties for allowupdate,allowinsert, etc to be true.
Datamode is in bound mode.
I can see the data in the Datagrid, but cannot edit it. Can anyone pls
Help! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Chris Plowman |
last post by:
Hi all,
I was wondering if anyone can help me with a really annoying problem I have
been having. I made a derived datagrid class that will select the row when
a user clicks anywhere on a cell...
|
by: Emerson |
last post by:
The following assumes a System.Windows.Forms.DataGrid with a System.Data.DataTable set as the DataSource. I'm programming in C#
Here's my scenario
I click in a cell on a DataGrid. I enter some...
|
by: Jeff |
last post by:
IDE: VS 2003 :NET
OS: XP Pro
My app have a form with a tab-control on it. The tab-control have 2
tabpages. One of the tabpages displays a datagrid, and the other tabpage
displays details (order...
|
by: Rick |
last post by:
Hello all, I hope all is well with you.
I am having a seriously difficult time with this problem. Allow me to
set
up the problem.
I have a System.Web.UI.Page with the following controls...
|
by: The Alchemist |
last post by:
I am having a problem with a dynamically-generated Datagrid. It is
important to point out that this problem does not exist with a
design-time created Datagrid, but only with a dynamically generated...
|
by: tshad |
last post by:
How do I find (and set) a couple of labels in the Footer after a DataGrid is
filled?
I have a bunch of DataGrids that get displayed nested inside a DataList.
The datagrid looks like:
...
|
by: tshad |
last post by:
I am having trouble with links in my DataGrid.
I have Links all over my page set to smaller and they are consistant all
over the page in both Mozilla and IE, except for the DataGrid.
Here is a...
|
by: optimizeit |
last post by:
What I am attempting to do is import an Excel Workbook and display the
worksheets in a datagrid dynamically.
I am very close to getting this to work. I have to this point
successfully imported a...
|
by: rn5a |
last post by:
A Form has a DataGrid which displays records from a SQL Server 2005 DB
table. Users can modify the records using this DataGrid for which I am
using EditCommandColumn in the DataGrid. This is the...
|
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= |
last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor
information and the details loads the documents for that vendor in a
datagrid. Everything is working fine until I click...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |