|
The DataGridView has a CellValidating event which is raised when a cell loses the focus. If you take a look at the MSDN documentation for it, there's a sample that shows how to validate the entry. The example looks at validating for an integer, but if you use double.TryParse instead it should do what you want.
|
|
|
|
|
Did you try this one??
Me.dataGridView1.Columns("xxx").DefaultCellStyle.Format = "c"
|
|
|
|
|
I am writing this code to bind data in a combobox its showing following in DataValueField and DataBind()
SqlDataAdapter da = new SqlDataAdapter("Select job_name from ep_job",con);
DataSet Obj_dse = new DataSet();
da.Fill(Obj_dse);
Dd_designation.DataTextField=Obj_dse.Tables[0].Columns["job_name"].ToString();
//drp_Reporting_Name.DataValueField=Obj_dse.Tables[0].Columns["job_id"].ToString();
Dd_designation.DataSource=Obj_dse;
Dd_designation.DataBind();
Dd_designation.Items.Insert(0, "-Select-");
|
|
|
|
|
Hi Guys
I have a DataGridView and I have datagridviewcombobox column in it there is few blank rows inserted by me in the datagridview i want that all those blank datagridviewcombocolumn looks like datagridviewTextBox column when user click on than combobox appear
|
|
|
|
|
|
|
.NET 2.0 - I need to display a "promptString" with different characters for specific positions in a MaskedTextBox, rather than just the same character repeated (e.g. HH:MM). May need to use TextBox with RegEx validation instead.
Is there an easier way?
|
|
|
|
|
cturn wrote: with different characters for specific positions
cturn wrote: rather than just the same character repeated (e.g. HH:MM).
Isn't HH:MM different characters for specific positions? What are you talking about?
led mike
|
|
|
|
|
Thanks for responding.
The MaskedTextBox control has the PromptChar property that allows the default "_" or any other single character to be used in a prompt string (based on the contents of the Mask property). All that gets displayed is "__ __". I'd like to see "HH:MM". Or in the case of a LAT/LON entry, "##A ###A".
|
|
|
|
|
cturn wrote: All that gets displayed is "__ __"
If I ever used it I would know that!
Did you consider using a tooltip to present the "HH:MM" string. You could include additional explanatory information as well yes?
led mike
|
|
|
|
|
Thanks, but unfortunately the requirement is to display it as the prompt.
|
|
|
|
|
i want to store the datagrid view values into the excel sheet
multiple times
i am using .net 2.0 version
|
|
|
|
|
In order to write to an excel sheet you can use either excel object model or excel oledb provider. There are many articles available on codeproject and on google.
|
|
|
|
|
Hi all,
I’m a C++ developer and a very beginner in both C# (.Net) and Word Programming. What my company wants next is something like this: from different texts to build a Word 2007 document and then open this in the real Word 2007 application to give the user the possibility to change the document as usual with all possibilities (Menüs, Panels, etc.). Well my problem is that the Word 2007 must be embedded in our C# - Application (WinForms).
Knows somebody a solution to do this: embed the Word 2007 application in WinForms or if better maybe in WPF? For any idea thank you in advance.
Best Regards,
Emil
|
|
|
|
|
Your question has already been answered in c# forum
|
|
|
|
|
I need help with the code for making an mdiform transparent
tony-yeyo
|
|
|
|
|
First of all, please don't post the same question twice.
Second, set the backcolor of your form. Then set the transparent key to the same color. You will also have to set the controlbox property to false, and maybe mess with the FormBorderStyle propery.
Hope this helps.
|
|
|
|
|
Can I get some help with the code for making an Mdiform transparent?
tony-yeyo
|
|
|
|
|
how can I make an Mdiform transparent
tony-yeyo
modified on Sunday, February 03, 2008 5:12:08 PM
|
|
|
|
|
If I were you I'd start trying to become myself transparent...
Read the posting guidelines... and post that messasge to the right board...
Put on the flame suit...
|
|
|
|
|
Ooooh, you need a magic wand for that one.
Alternatively, because the bunnies are loose you could post to the forums of the language of choice...
Just a thought.
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"The secret to a long and healthy life is simple. Don't get ill and don't die." Pete O'Hanlon, courtesy of Rama
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
*Elaine hides from the killer bunny rabbits*
|
|
|
|
|
I finally got back online after a near 12 hours of no internet connectivity!
let me say
very reminiscent of the monty python
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"The secret to a long and healthy life is simple. Don't get ill and don't die." Pete O'Hanlon, courtesy of Rama
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
Do not post programming questions in the Lounge!
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
I am using the DateTimePicker to get a time from my users. It has a custom format of mm:ss. I have my ShowUpDown set to true.
However, most of the time changes my users will be making will be in the seconds field. The upDown defaults to changing minutes. Is there a way to make the default be seconds?
Programmer
Glenn Earl Graham
Austin, TX
|
|
|
|