Click here to Skip to main content
15,884,099 members
Home / Discussions / C#
   

C#

 
Questiondrag and drop file and/or add note to window form calendar Pin
kyi kyi25-Jun-09 0:07
kyi kyi25-Jun-09 0:07 
QuestionHow to check if documents on shared folders are availiable? Pin
Succodimele24-Jun-09 23:42
Succodimele24-Jun-09 23:42 
AnswerRe: How to check if documents on shared folders are availiable? Pin
Sk9325-Jun-09 0:12
Sk9325-Jun-09 0:12 
AnswerRe: How to check if documents on shared folders are availiable? Pin
Mycroft Holmes25-Jun-09 0:49
professionalMycroft Holmes25-Jun-09 0:49 
QuestionUsage of Lambda Expression Pin
HarishBhattbhatt24-Jun-09 23:41
HarishBhattbhatt24-Jun-09 23:41 
AnswerRe: Usage of Lambda Expression Pin
led mike25-Jun-09 4:47
led mike25-Jun-09 4:47 
AnswerRe: Usage of Lambda Expression Pin
Niladri_Biswas25-Jun-09 6:03
Niladri_Biswas25-Jun-09 6:03 
QuestionCombobox control..........?? [modified] Pin
Hum Dum24-Jun-09 23:09
Hum Dum24-Jun-09 23:09 
using vs2003.
Its a data entry application, having some fields and buttons.

In this, I am using combobox control, getting data from DB in DataTable obj dt, then setting the datasource property of Combobox to this dt.

there is New button, when user clicks on it, it simply clears all fields text, their DataBindings, for combox also i am using it as
cbBox.DataBinding.Clear();
cbBox.Text = "";


then there Save button which saves data to DB, on this Save click event i am checking data entered, like
if(cbBox.Text =="")//here it shows previous text if user do not enter any data
// after clicking New button (in debugging), but if user enter some data then that 
//entered data
{
// related code
}


But here is problem, after clicking new button, all fields got clear, cbBox text goes blank. But if user did not enter any data in cbBox then it retains the previous text(text before clicking New button)

a) why this? how to rectify.


b)Related to DataRow?
when we load some data from DB, we fill it in Datatable obj first.
then iterate thru all rows.

SQL = "Select * from Data where ID = 23";
execute this SQL against DB.
assume ID is primary key,
now only single row returned,

How to get this DataRow without filling it in Datatable?

regards,

modified on Thursday, June 25, 2009 7:35 AM

AnswerRe: Combobox control..........?? Pin
padmanabhan N24-Jun-09 23:31
padmanabhan N24-Jun-09 23:31 
GeneralRe: Combobox control..........?? Pin
Hum Dum25-Jun-09 1:33
Hum Dum25-Jun-09 1:33 
QuestionReceive mail by C# code Pin
khosnur24-Jun-09 22:45
khosnur24-Jun-09 22:45 
AnswerRe: Receive mail by C# code Pin
stancrm24-Jun-09 23:00
stancrm24-Jun-09 23:00 
GeneralRe: Receive mail by C# code Pin
khosnur6-Jul-09 23:45
khosnur6-Jul-09 23:45 
GeneralRe: Receive mail by C# code Pin
khosnur6-Jul-09 23:47
khosnur6-Jul-09 23:47 
QuestionImage processing problem... Pin
S K Y24-Jun-09 22:08
S K Y24-Jun-09 22:08 
AnswerRe: Image processing problem... Pin
Christian Graus24-Jun-09 22:34
protectorChristian Graus24-Jun-09 22:34 
GeneralRe: Image processing problem... Pin
S K Y24-Jun-09 23:28
S K Y24-Jun-09 23:28 
GeneralRe: Image processing problem... Pin
Luc Pattyn24-Jun-09 23:57
sitebuilderLuc Pattyn24-Jun-09 23:57 
QuestionHow to retrive and save the attachments of the Mail from Pop3. Pin
Nekkantidivya24-Jun-09 21:32
Nekkantidivya24-Jun-09 21:32 
AnswerRe: How to retrive and save the attachments of the Mail from Pop3. Pin
Christian Graus24-Jun-09 21:46
protectorChristian Graus24-Jun-09 21:46 
Questionimporting table to another database Pin
leone24-Jun-09 20:36
leone24-Jun-09 20:36 
AnswerRe: importing table to another database Pin
Mycroft Holmes24-Jun-09 20:45
professionalMycroft Holmes24-Jun-09 20:45 
GeneralRe: importing table to another database Pin
leone25-Jun-09 1:15
leone25-Jun-09 1:15 
GeneralRe: importing table to another database Pin
Mycroft Holmes25-Jun-09 1:48
professionalMycroft Holmes25-Jun-09 1:48 
QuestionDifference between commandtype.storedprocedure and commandtype.text in terms of speed. Pin
Ersan Ercek24-Jun-09 20:28
Ersan Ercek24-Jun-09 20:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.