473,378 Members | 1,138 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,378 software developers and data experts.

Disabling Datagrid Refresh

HKM


Hi All,

Is it possible to disable the datagrid refresh while
changing the datasource properties, basically im renaming
columns in the background and sometime it gets crazy to
see datagrid columns changing width as they are renamed.
Instead i would like to perform the rename operation
completely in the background and then refresh it to show
the changes in column names. Is it possible ?


Thanks in advance,

-HKM
Nov 15 '05 #1
2 9906
L#
On Wed, 4 Feb 2004 14:16:16 -0800, "HKM"
<an*******@discussions.microsoft.com> wrote:


Hi All,

Is it possible to disable the datagrid refresh while
changing the datasource properties, basically im renaming
columns in the background and sometime it gets crazy to
see datagrid columns changing width as they are renamed.
Instead i would like to perform the rename operation
completely in the background and then refresh it to show
the changes in column names. Is it possible ?


Thanks in advance,

-HKM


Just a guess, but have you tried DataGrid.SuspendLayout() and
DataGrid.ResumeLayout() ?
--
Ludwig
mailto:ludwig_(nospamplease)stuyck@pandora(nospamp lease).be
Nov 15 '05 #2
It works ! Thats cool.

Thanks Ludwig

-HKM
-----Original Message-----
On Wed, 4 Feb 2004 14:16:16 -0800, "HKM"
<an*******@discussions.microsoft.com> wrote:


Hi All,

Is it possible to disable the datagrid refresh while
changing the datasource properties, basically im renamingcolumns in the background and sometime it gets crazy to
see datagrid columns changing width as they are renamed.
Instead i would like to perform the rename operation
completely in the background and then refresh it to show
the changes in column names. Is it possible ?


Thanks in advance,

-HKM
Just a guess, but have you tried DataGrid.SuspendLayout()

andDataGrid.ResumeLayout() ?
--
Ludwig
mailto:ludwig_(nospamplease)stuyck@pandora (nospamplease).be.

Nov 15 '05 #3

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

Similar topics

5
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...
3
by: Jim Heavey | last post by:
Trying to figure out the technique which should be used to add rows to a datagrid. I am thinking that I would want an "Add" button on the footer, but I am not quite sure how to do that. Is that...
6
by: sonic | last post by:
Hi, I am experimenting with different viewstate management ideas for large datagrids, and found a microsoft suggestion to turn it off, and only store relevant information by manually accessing...
3
by: james crosthwaite via .NET 247 | last post by:
Hi, I'm pretty new to .NET and i'm having a major problem which ireally need some help with. I am developing an application for my office which allows usersto book rooms. I have a Booking Form...
1
by: Andre | last post by:
hi, In my Datagrid i have some text and a image (for each item), if i edit the image and save it to the HD there's no problem, but the image is always saved with the same name (item number.jpg)...
7
by: Juan Romero | last post by:
Hey guys, please HELP I am going nuts with the datagrid control. I cannot get the damn control to refresh. I am using soap to get information from a web service. I have an XML writer output...
2
by: Dan | last post by:
Hi, I have a Datagrid in a simple form that I programmatically modify using something like that : Me.DataGrid1(RowID, ColID) = "blablabla" But my cell wont refresh unless I click on another...
6
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi - I'm having trouble refreshing a datagrid control bound to a dataset that was created from the New Data Source wizard. What is the code required to refresh the datagrid with data from the...
1
by: simonyong | last post by:
hello, everyone im a newbie to asp.net, getting nut with just a simple stuff please give me some direction How to use dropdownlist when user select one of the method in dropdownlist The fields...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.