473,606 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Gridview Multi-row edit from external fields by button click

4 New Member
Hi

I have a page which displays a Gridview containing on each row a checkbox and 3 fields/cells (title, longitude, latitude). On the same page I have two textboxes containing the latitude and longitude values of a location (obtained from Google Maps).

I want to update the longitude and latitude values of the rows on the Gridview for which the checkboxes have been selected, with the values in the two (external) textboxes - by clicking a button next to the textboxes

I have been unable to switch the Gridview to Edit Mode to do this and loop through the rows amending the values. Is this actually possible? (I've used similar Gridview and button click to delete rows with checkboxes set, but first time have tried editing multiple rows)

Can anyone help? I code in VB.Net (fairly new to it - mostly VB6 before this)

Ken
Aug 10 '07 #1
2 6640
gyanendar
90 New Member
Hi

I have a page which displays a Gridview containing on each row a checkbox and 3 fields/cells (title, longitude, latitude). On the same page I have two textboxes containing the latitude and longitude values of a location (obtained from Google Maps).

I want to update the longitude and latitude values of the rows on the Gridview for which the checkboxes have been selected, with the values in the two (external) textboxes - by clicking a button next to the textboxes

I have been unable to switch the Gridview to Edit Mode to do this and loop through the rows amending the values. Is this actually possible? (I've used similar Gridview and button click to delete rows with checkboxes set, but first time have tried editing multiple rows)

Can anyone help? I code in VB.Net (fairly new to it - mostly VB6 before this)

Ken
For any thing to be done on gridview data..there should be an event for that.
Here u have external button...clicki ng that can u fire an event for gridview?
Aug 10 '07 #2
beish1
4 New Member
For any thing to be done on gridview data..there should be an event for that.
Here u have external button...clicki ng that can u fire an event for gridview?
There is a button to set off the event - don't know what the event coding to update the checked row fields should be
Aug 10 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1908
by: ABC | last post by:
I have an idea. I need to write a common gridview block which contains labels, textboxs, one girdview and some buttons. Then, I think the above block will apply on several girdview with different columns, for example: Common GridView Block - label, textboxs, buttons - one girdview without any columns
5
1425
by: John A Grandy | last post by:
It looks like MS wants you to use config a SQLDataSource , hand coding the SELECT, INSERT, UPDATE, DELETE SQL , and then assigning GridView.DataSourceID = SQLDataSource ... But what if you prefer to encapsulate all your DML in SPs ? Is it possible to config the SQLDataSource with SPs ? If not, is there an alternative to MS's preferred method for config'ing a GridView ?
1
3065
by: ZeroDev | last post by:
how can i do a multi header asp.net gridview and if it is Posible to do it as a class to use it any time , i mean Generic way , so ic an include the Header count style etc ,
0
1513
by: steve.craver | last post by:
I am working with a multi-field search form which, when the form is submitted, queries a database and returns the results into a paginated GridView object. The site is being developed with master pages. So far, I have had success in building the search form, and passing the values entered by the user from the form to a results page, and displaying the entire resultset using GridView. However, when I set the AllowPaging option on the...
2
2168
by: VMI | last post by:
I'm filling up a gridview and the underlying datatable has about 30,000 records, so it takes some time before I can see the page again with the records on the gridview. Is there any type of threading (or anything else) that I can use so that I can display some message (i.e. "Grid loading...") or any way so that I can start viewing the records? Thanks.
3
4597
by: Jeff | last post by:
Hey asp.net 2.0 In the source I posted below, there is a GridView (look at the bottom of the script): <asp:GridView ID="gvwOnline" runat="server"> </asp:GridView> I'm trying to assign a datasource to this GridView in runtime. But I cannot
3
18047
by: gihope | last post by:
Can anyone tell me why I am not allowed to bind a two or multi dimensional array to GridView and possibly suggest how they would deal with similar scenarios? The array is simply a two dimensional monthly volume array: Extract from Report class: // Query all Messages Sent for a Given Month public string qVolumeByMonth() { string volumeByMonth = new string;
4
19491
by: tirath | last post by:
hi, I want to display data in on my web page, in gridview in this format: Group A Group B A1 A2 B1 B2 Test 1 1 2 1 2 Test 2 1 2 1 2 Group A is header to columns A1 and A2 and Group B is header to columns B1 and B2. How do i add header to columns A1 A2 and B1 B2?
5
6075
by: Eric | last post by:
Hi, there are several gridviews all with a linkbutton which all trigger the same procedure. I need to know from which gridview the linkbutton has been clicked. Thanks Eric Here the code:
3
5228
by: Peter | last post by:
I have a GridView which is populated by List<ofObjects> Does anyone have example of how to sort the columns of this GridView? I have found examples without DataSourceControl but these use DataTable, I am using List of Objects. Here's one example: http://ryanolshan.com/technology/gridview-without-datasourcecontrol-datasource/
0
8015
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7951
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8439
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8430
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8094
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
3977
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2448
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1553
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1296
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.