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

DataGrid Clear after formating

Hello,
I am loading a dataGrid and formatting it with datagridtablestyle, but
when it loads different info it does not clear the old. With out the
formatting the code works. I have tried clearing the datagrid
tablestyles. Any other ideas would be helpful.

Thanks
Tom

*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #1
1 998
Hi,

Try setting the datagrid datasource to nothing before changing
it to the new datasource.

Ken
-----------
"Thomas Beyerlein" <tb***@yahoo.com> wrote in message
news:%2******************@TK2MSFTNGP14.phx.gbl...
Hello,
I am loading a dataGrid and formatting it with datagridtablestyle, but
when it loads different info it does not clear the old. With out the
formatting the code works. I have tried clearing the datagrid
tablestyles. Any other ideas would be helpful.

Thanks
Tom

*** Sent via Developersdex http://www.developersdex.com ***
Nov 21 '05 #2

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

Similar topics

0
by: Diogo Alves - Software Developer | last post by:
Hi there, I have a big problem here, I am binding a database table to a dataset and then populate a datagrid the problem is that I have a column that is named TOTALMINUTES and type real.... On...
1
by: Tayo | last post by:
What is best way of having a consistent datagrid format on multiple pages? Any ideas welcome Tayo
3
by: Tina | last post by:
I have a datagrid where I specified {0:###,###,###} at design time. However sometimes I am putting percentages in the grid instead of money and I want to change the formating to {##%}. I've...
7
by: Earl | last post by:
Any known fixes for the wacky right-alignment bug in the WinForms datagrid (VS2003)? I've tried Ken's workaround...
4
by: BrianDH | last post by:
Hi I have a datagrid that I populate with a web service dataset. All fields are sent to text. However, one field will not show its value. You can click on a row and see that info in the grid's...
1
by: Tor Inge Schulstad | last post by:
Hi. I need to change the fontsize and vertical alignment of the text in a datagrid. It's a Windows forms application, and I'm using tablestyles to format my datagrid. I do not need to format...
3
by: Horselover Fat | last post by:
Hi, I have a column in a database that holds elapsed time in milliseconds and I want to display that column in a DataGrid in a specific format (d.hh:mm:ss.fff). However, the closest I can get...
0
by: musawer | last post by:
Can Someone give a good link for C# Winform DataGrid Text Style Formating (Font,Color,Size etc)... Quick reply will be highly appreciated... Thanks...
1
by: CreativeMind | last post by:
i have a datagrid having a templatecolumn with headertext="CompletionDate".I want to bind it with either column 'CompletionDate'(datetime) or 'IsReady'(bit). If 'Isready' value is false, then Row...
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:
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
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
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
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.