|
If I said I think it might be a file locking issue, would it jog memories?
|
|
|
|
|
Not much of help but.. I would try to look at typeof(o)==typeof(MembershipLevel). Is it false? If yes, why? Look at all (relevant) properties, like FullName...
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
i have a combobox it loads it's data during the loadform
but i want to add this combobox to the specific cell of the datagridview
that is because i want to use the combobox events , that is why i dont like to add a DataGridViewComboBoxColumn
pleas how can i do this
thanks for help
MD_NADA
|
|
|
|
|
Adding a control to a Datagrid has been asked quite alot here. Search the forums to find the answer, I'm sure it's been posted.
|
|
|
|
|
Thank u
but i think u didnt read my question well
i ask about DataGridView not DataGrid
if u know how can i achieve this pls write 2 me
i find how can i add combobox in the datagridview
but it is a templet
so , my case i want 2 add a control from the controls exmple a control that i have it on the form like the combobox
in specific column when i click on that cell
i hope u can get what i mean
MD_NADA
|
|
|
|
|
|
thanks dude. Even i wanted some information on the same.
Keshav Kamat
India
|
|
|
|
|
I am getting the following error and I don't know why...
The given ColumnName 'RS-I2' does not match up with any column in DataSource.
System.Collections.ListDictionaryInternal
That Column name does exist in the datasource, and my column names & mappings are correct. Does anyone have any ideas? Thanks =)
|
|
|
|
|
Maybe the hyphen in your column name causes troubles to database. try to surround the name with square brackets, i.e. [RS-I2] .
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
In my code I have the column name in brackets. It's only in the error message that it doesn't have the brackets, I thought that to be a bit strange. Also, I also few other columns that have a hyphen in them, I am only getting the error on that specific one.
-- modified at 17:12 Tuesday 1st May, 2007
|
|
|
|
|
No, this is not strange since brackets usually are not reported on error messages. I'm still doubting about the hyphen...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
bcp.ColumnMappings.Add(new SqlBulkCopyColumnMapping("RS-I2", "[RS-I2]"));
It's in brackets right there, I'm at a loss. I am about to light myself on fire and start punching myself in the face
|
|
|
|
|
Hi,
I tried to formart a double to a 10 digits, and 5 fixed points string.
say if I have a double variable with a value as "512.297812223" and want it to be displayed as " 512.29781"
I surveyed the internet , but seems not finding a solution for this issue.
You help is much appreciated.
Meng
|
|
|
|
|
.ToString("####0.00000")
---
single minded; short sighted; long gone;
|
|
|
|
|
And
System.Console.Write ( "{0:####0.0000}" , 123.456789 ) ;
|
|
|
|
|
how can I use date/time in c# to get only the time.....?
lavi
|
|
|
|
|
lavy2883 wrote:
how can I use date/time in c# to get only the time.....?
DateTime.Now.TimeOfDay(); -> returns Timespan
DateTime.Now.ToLongTimeString(); -> returns hh:mm:ss
DateTime.Now.ToShortTimeString(); -> returns hh:mm
|
|
|
|
|
The string that we want to read can contain only the time without the date .....?
|
|
|
|
|
So what you really want to do is to parse a string that represents a time of day?
You can use the ParseExact method to parse any kind of date/time value. As the result is a DateTime value, it will always has a date component, though.
---
single minded; short sighted; long gone;
|
|
|
|
|
DateTime.Now.ToLongTimeString(); -> returns hh:mm:ss
DateTime.Now.ToShortTimeString(); -> returns hh:mm
These functions gives you the time alone as a string and not the date.
Have a look at this link on MSDN.[^]
|
|
|
|
|
A DateTime value always has a date component. You can create a TimeSpan value that represents the time span from midnight.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
As Tarakeshwar showed, the TimeOfDay method does that.
---
single minded; short sighted; long gone;
|
|
|
|
|
the problem is... if the input which is a string need to have the date too or not....?
|
|
|
|
|
No, it doesn't. When parsing the string you can for example specify a format like "HH:mm:ss" which would be able to parse a string like "21:13:48". As the parsed data only contains the time component, the date component will be given a default value. I don't remember if the current date is used, or the date 0001-01-01.
---
single minded; short sighted; long gone;
|
|
|
|