473,386 Members | 1,842 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Clearing the Data Grid from client script.....

My development environment is ASP.Net with Vb.Net and Java script with .Net
Framework 1.1 and IE 6.x.

I have a search window and once the user done with search, if user wants to
clear the search text fields/search result (data grid) they can click the
clear button.

I used server side button control for the clear button.

To clear the search result in the data grid, I am rebuilding the data grid
with empty rows.

So to clear the data grid I am making round trip to the server. My question
is, is there anyway I can clear the data grid from the client code. I can
clear the search text boxes using the java script code.

Jack
Nov 18 '05 #1
2 3821
Hi Jack,
You can place the datagrid inside a div and set the visibility = hidden when
clear button is clicked.
HTH
srini

"Jack Smith" wrote:
My development environment is ASP.Net with Vb.Net and Java script with .Net
Framework 1.1 and IE 6.x.

I have a search window and once the user done with search, if user wants to
clear the search text fields/search result (data grid) they can click the
clear button.

I used server side button control for the clear button.

To clear the search result in the data grid, I am rebuilding the data grid
with empty rows.

So to clear the data grid I am making round trip to the server. My question
is, is there anyway I can clear the data grid from the client code. I can
clear the search text boxes using the java script code.

Jack

Nov 18 '05 #2
Syntax Please.

"srini" <sr***@discussions.microsoft.com> wrote in message
news:EC**********************************@microsof t.com...
Hi Jack,
You can place the datagrid inside a div and set the visibility = hidden when clear button is clicked.
HTH
srini

"Jack Smith" wrote:
My development environment is ASP.Net with Vb.Net and Java script with ..Net Framework 1.1 and IE 6.x.

I have a search window and once the user done with search, if user wants to clear the search text fields/search result (data grid) they can click the clear button.

I used server side button control for the clear button.

To clear the search result in the data grid, I am rebuilding the data grid with empty rows.

So to clear the data grid I am making round trip to the server. My question is, is there anyway I can clear the data grid from the client code. I can clear the search text boxes using the java script code.

Jack

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gary | last post by:
I have a problem with the datagrid not clearing when the datasource changes, a few fields remain on the screen and even when new data would fill those grid squares the old data remains. I wind...
8
by: Mike Fellows | last post by:
Ok, im not sure if this is at all possible and if it is how i go about it is beyond me i have a piece of client side code that requires a piece of data from the server side (an ID number in this...
5
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
3
by: Scottie_do | last post by:
I have a 20meg in-memory stack-based array and I'd like to normalise in the client's memory... then add foriegn keys, and display results on a datagrid. I discovered that converting the stack to a...
15
by: tmax | last post by:
PHP Pros: I have a simple html form that submits data to a php script, which processes it, and then redisplays the same page, but with a "thank you" message in place of the html form. This is...
1
by: amber | last post by:
Hello, What is the best method of clearing a datagrid? I'm having issues with it not 'resetting' when I want to repopulate it. I usually design my datagrids using the .net toolbar/properties, but...
3
by: gilbert3b2g | last post by:
I'm new to Python, and programming in general. What I'm trying to do here is to load a list of accounts from a file on my harddrive into a string of Buttons in Tkinter, and when I press one of the...
5
by: Donald Adams | last post by:
Hi, I will have both web and win clients and would like to page my data. I could not find out how the datagrid control does it's paging though I did find some sample code that says they do it...
6
by: slinky | last post by:
I found the following code to transfer datagrid data to an Excel file. Is this written in C#?... I'm a vb.netter. I'm just not sure where to place the code to experiment on it. Should I place it in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
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...

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.