|
Take a look at this MSDN topic covering Numeric Format Strings[^].
There may also be a way doing the formatting during data binding. I remember doing something like that on my website. But to help you specifically with that some code would be helpful.
www.troschuetz.de
|
|
|
|
|
Thanks Stefan,
Heres the code :
this.textBoxAmount.DataBindings.Add("Text", myBindingSource, "Amount")
There is another .Add Constructor, which includes 'formatString', so perhaps I can use that?
Thanks
Jonny
|
|
|
|
|
|
How can I run a Select query from a datatable so that it only brings the
fields I want?
ALBSHAH
|
|
|
|
|
SELECT list_of_fields_you_want_seperated_with_comma FROM ...
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi there
Why do you need this functionality?
If there isn't too much data in the table, you could copy the table and then remove the columns you didn't need, and then Select from it:
DataTable newTable = oldTable.Copy();
newTable.Columns.RemoveAt(1);
newTable.Columns.RemoveAt(3);
dgDisplay.DataSource = newTable.Select("WHERE age < 50");
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
I am using Infragestics Ultra webGrid and one of the column in that gird is Hyperlink.
I want to pass multiple values in Navigate URl
How do i do that???
Thanks
|
|
|
|
|
As you have paid for it it should be best to ask Infragestics...
|
|
|
|
|
Hi,
How can i create a pop up menu like the one of Mail button on IE?Please help me.
Thanks,
LMHP
|
|
|
|
|
Hi,
i want to create a pop-up menu like the Mail button for the IE. How can i do this?
Thanks in advances.
LMHP
|
|
|
|
|
comboBox1.DataSource = AnyDataset;
comboBox1.DisplayMember = "Name"
comboBox1.ValueMember = "Id"
while writting this code.the selectedIndexchnaged event of the combo fire.
i don't want the same.I want to event to fire when the item is selected from the interface.
Rohin
|
|
|
|
|
Check visibility of form, when hanling event, or use flag:
updating = true;
comboBox1.DataSource = AnyDataset;
comboBox1.DisplayMember = "Name"
comboBox1.ValueMember = "Id"
updating = false;
....
public void OnSeletedIndexchanged(...)
{
if (!updating)
{
// handling code
}
}
Best regards, Alexey.
|
|
|
|
|
How are you Friends in this forum ?
i need to know how can i make pc to pc calls in my application!!!
http://www.openh323.org[^]
i have seen this great website but unfortunately i didn't
know how to add these two main classes pwlib.dll and openh323.dll to my project . the solution told me that these classes are neither supported classes Dll nor Com files . So anyone here has any information about .
how to establish a pc to pc calls.?
Any help will be greatly appreciated .
Human knowledge belongs to the world.
|
|
|
|
|
I am not able to find, how can I display DataGrid data Only using UpperCase .
rosenvas
|
|
|
|
|
There are two ways to do it
1. Get the data in upper case from the SQL Server - Use upper.
SELECT UPPER(RTRIM(au_lname)) + ', ' + au_fname AS Name
FROM authors
ORDER BY au_lname
2. Use DataBinder.Eval if you are databinding the datagrid
<%# DataBinder.Eval(Container.DataItem,"[au_lname]").ToString.ToUpper %>
-
बुरा जो देखण मै चला, बुरा न िमलया कोय,
जो मन खोजा आपणा तो मुझसे बुरा न कोय।
Translation
|
|
|
|
|
Thanks, but I am using Winforms. This property is not there. Is there any other way to do this except the first one you have given.
rosenvas
|
|
|
|
|
Please any one help me
i want to make .net project and compile it as com component, i tried many ways but no one of them work, so please help me because i want it urgantly
|
|
|
|
|
|
To configure an assembly as a COM Interop, u need to do the following:
1.Click Project Properties
2.Configuration Properties
3.Build
4.Set Register for COM Interop = True
How ever that may not be feasible.For more information check out this article http://www.c-sharpcorner.com/Code/2004/Aug/Interoperabilityin.NET.asp[^]
Hope thats what u are looking for.
|
|
|
|
|
Thanks alot for your help but..
the problem here that I tried this way but it didn't work, I made class library and set this property to true, when I tried to register it in windows to be used in VB6 it didn't work
so please try to help me
|
|
|
|
|
Hi Rmedo
You need to register the .net assembly in the registry for the VB6 to be able to locate the code.
The "RegAsm.exe" tool is used for this. It should be in your .net framework folder.
Kind regards - Jakob
*********************************************
Three kinds of people in the world:
- Those who can count..
- Those who can't!
10 kinds of people in the world:
- Those who understand binary
- Those who don't
|
|
|
|
|
Thanks Jakob for your help
I made it many time but no use ( i think my pc have somthing error
|
|
|
|
|
Its already registered for you once you rebuilt your project, you cannot register it like a COM object regsvr32..Have u tried to call the object from VB? This is one way,the article i supplied you with describes tools that does exactlty that and explain .net interoperability with COM objects
|
|
|
|
|
Yes i tried to call it from VB6 but it can't read it
Thanks alot for your help
|
|
|
|
|
I use C#.net 2005
myserver : 2003
i want to get all user in LDAP
and i have username, password(Admin), path
some body help me !!!!!!
can u give me example
thanks
|
|
|
|