|
Correct, there is no way to do this. What behavior are you referring to in Visual Studio? If I add a reference to System.Data without already having a reference to System, it doesn't add both references, only the one I specifically told it to add.
Registering the library in the GAC would have no affect on this behavior whatsoever.
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
[ Blog][ Articles][ Forum Guidelines] Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
|
|
|
|
|
Madness I say!
I could swear I've added a reference to a system assembly before and it added more than one reference...but perhaps I'm just delusional.
If I don't reply again, it means I couldn't figure out where I saw that happen...if I figure it out, I'll reply again, lol.
|
|
|
|
|
foreach (DataGridViewRow dr in dgproducts.Rows)
{
if (Convert.ToInt32(dr.Cells[9].Value) < Convert.ToInt32(dr.Cells[6].Value))
{
## //i need to color this row here
}
}
## i need to colour the particular row at that point of the loop
i cant find anything like in that intellisense and sub-intellisense
maybe am not checking well.
any help plz
|
|
|
|
|
DataGridView.Rows.DefaultCellStyle.BackColor will do that.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Thanks am trying it out..
thanks a mill
|
|
|
|
|
I need to print the content of a data grid view.
Now i am using the DGV Printer: DGV Printer Class[^]
But i neet to print only some columns of the data grid view, columns specified by the user.
The DGV Printer prints all the content (all columns), so i can't specify which column must be print. How can i solve this problem ?
|
|
|
|
|
Well if simply you want to print some information and to neglect other, the first solution that hits the mind is to process all records and filter out specific columns. Then print that shortened version of information.
|
|
|
|
|
I don't know squat about the printer tool but have you tried setting the unwanted columns visible property befor printing.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It don't work, i have just tried.
|
|
|
|
|
Hi there,
I am relatively new to .Net programming. I've been using the DataGrid to display my Datatables and i really like the way you can easily navigate to child rows in child tables that you've set up in the DataRelations.
But the more I used it the more i found out about its drawbacks and came across the DataGridView. This has been introduced since VS2005 and the .Net 2.0 framework. Now it has many appealing new functions which are very useful to me. But so far i have not been able to find a way to navigate as easily as with the DataGrid.
From examples i have found, to relate the DataGridView to a source you have to use the DataBindings class. This all seems like alot more effort than with the DataGrid where you would just set the .DataSource property.
So my question is, "Is there an equivalent to the .NavigateTo() and .NavigateBack() functions of the DataGrid in the DataGridView? If there isn't, has a common practice of achieving similiar results been found?"
I hope to hear from someone soon,
codeboy1988
|
|
|
|
|
Hi,
I have write an AddInCustomAction that must be performed before the Installation.
I did something like:
public override void Install(IDictionary stateSaver)
{
base.Install(stateSaver);
}
This doesn't work properly.
the file MyFile.txt exists (and so should be removed)
but after installation it still exists!!
Any Idea?
Thanks
|
|
|
|
|
You should show your real code - posting pseudocode won't help us solve the issue.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Sorry, Here is the code:
public override Install(IDictionary stateSaver)
{
String path = this.Context.Parameters["targ"].ToString();
DirectoryInfo dir = new DirectoryInfo(path);
foreach (FileInfo f in dir.GetFiles())
{
if (f.Name == "MyFile.txt")
File.Delete(f.FullName);
}
base.Install(stateSaver);
}
|
|
|
|
|
hello...
i am working in a web application .i need to convert the time like... 5.00PM To 1700
6.10PM To 1810
12.00PM TO 2400 etc...
if there is any funtion that convert aal the time to thi format..and if not then tell me how could I do this...
Thanks in Advance
|
|
|
|
|
Something like this:
public static string ConvertTimeString(string time)
{
return DateTime.ParseExact(
time,
"h.mmtt",
CultureInfo.InvariantCulture).ToString("HHmm");
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
merahul wrote: 12.00PM TO 2400
What? That's not right.
Are you talking about user input? Why not have the user enter the data in the format you require?
|
|
|
|
|
merahul wrote: 12.00PM TO 2400
12PM is 12:00
12AM is 00:00
there is no 24:00 in 24h time
|
|
|
|
|
J4amieC wrote: there is no 24:00 in 24h time
that is debatable[^].
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
They can debate all they want, but 24:00 makes no sense.
|
|
|
|
|
It may have its uses, but I haven't needed it yet.
|
|
|
|
|
J4amieC wrote: there is no 24:00 in 24h time
There is in ISO 8601 (but I don't see why anyone would specify it).
|
|
|
|
|
Hello everyone!
I'm using a WebBrowser control in my app to load a page that updates its content dynamically via Ajax. I need to access the updated content to do some processing, but since the calls are made with Ajax the page doesn't get refreshed and thus the DocumentComplete event doesn't fire.
Is there a way to get notified when a call is made using the XMLHttpRequest object? Some event fires maybe?
Any help will be appreciated,
TIA
Kenia
Kenia
|
|
|
|
|
This topic might helps.But you have to be familar with COM interoparability to try it.
|
|
|
|
|
Hi everyone,
I have a form on my website and I'm thinking about creating a little javascript function to perform validation. I know asp.net has validation built in, but there are some other things I'd like the function to do that can't be done with the asp.net validation plus it's a learning project. I have a button at the end of the form which I would like to call this javascript function which will validate the form input fields, but then after that I'd like it to call the c# code behind which will access the database and do some other server side functions. Is there a way this can be done? Can you attach two "onClick" event handlers to a single button, or do I have to do something with a "hidden button" that is linked to the codebehind and have the javascript "click" it when it's done?
Thanks!
Knowledge is not power, however, the acquisition and appropriate application of knowledge can make you a very powerful individual.
|
|
|
|
|
What you're talking about doing is having the Javascript force a server side post back event. You might want to start looking at websites such as this[^].
|
|
|
|