Click here to Skip to main content
16,017,502 members
Home / Discussions / C#
   

C#

 
AnswerRe: deleting files Pin
Dan Neely1-Sep-05 5:02
Dan Neely1-Sep-05 5:02 
AnswerRe: deleting files Pin
Dave Kreskowiak1-Sep-05 6:31
mveDave Kreskowiak1-Sep-05 6:31 
GeneralRe: deleting files Pin
OMalleyW1-Sep-05 6:55
OMalleyW1-Sep-05 6:55 
GeneralRe: deleting files Pin
Dan Neely1-Sep-05 7:08
Dan Neely1-Sep-05 7:08 
GeneralRe: deleting files Pin
Dave Kreskowiak1-Sep-05 7:36
mveDave Kreskowiak1-Sep-05 7:36 
GeneralRe: deleting files Pin
OMalleyW1-Sep-05 8:08
OMalleyW1-Sep-05 8:08 
GeneralRe: deleting files Pin
Dan Neely2-Sep-05 3:24
Dan Neely2-Sep-05 3:24 
QuestionDatabinding Problem In My UserControl Pin
User 20930731-Sep-05 4:51
User 20930731-Sep-05 4:51 
Hi Every body
I have a usercontrol (Named DatePicker) with a property called 'Date'.This is the syntax of this property :
<code>
[Category("Date Info"),Bindable(true)]
public string Date
{
	get
	{return this.dateString;}
	set
	{this.dateString = value;}
}
</code>


This control also have some string properties (Day,Year and month)without 'Bindable(true)'Attribute.I use this user control and bind the 'Date' property of this control to a string column of a DataView in my form :

<code>
this.datePicker1.DataBindings.Ad("Date",this.dvDataSource,"Birthday");</code>

When I delete all rows of dataview whith this code :

<code>
this.BindingContext[this.dvDataSource].RemoveAt(this.BindingContext[this.dvDataSource].Position);
</code>

and then try to add a new row using the following code,

<code>this.BindingContext[this.dvDataSource].AddNew();</code>

I receive the following Exception :

"DataBinding could not find a row in the list that is suitable for all bindings"
Mad | :mad:

Note :
When I comment the line of code that contains instruction for Binding this property,everything works ok.I bound some other controls (Like DataGrid and TextBox) to the other columns of DataView.They haven't any problem !!

Please help me if anyone knows the answer.
Best Regards.

[ _ Always there is another way _ ]
QuestionDLL in C# Pin
osvaldorosario1-Sep-05 4:39
osvaldorosario1-Sep-05 4:39 
AnswerRe: DLL in C# Pin
Mohamad Al Husseiny1-Sep-05 8:43
Mohamad Al Husseiny1-Sep-05 8:43 
Questionhow to control scaner by C# Pin
anders horsson1-Sep-05 4:10
anders horsson1-Sep-05 4:10 
QuestionWatching Directory Pin
rakesh_nits1-Sep-05 3:55
rakesh_nits1-Sep-05 3:55 
AnswerRe: Watching Directory Pin
Dave Kreskowiak1-Sep-05 6:25
mveDave Kreskowiak1-Sep-05 6:25 
GeneralRe: Watching Directory Pin
rakesh_nits2-Sep-05 3:42
rakesh_nits2-Sep-05 3:42 
GeneralRe: Watching Directory Pin
Dave Kreskowiak2-Sep-05 11:40
mveDave Kreskowiak2-Sep-05 11:40 
Questionforbidden Internet explorer's button Pin
jzb1-Sep-05 3:30
jzb1-Sep-05 3:30 
AnswerRe: forbidden Internet explorer's button Pin
Judah Gabriel Himango1-Sep-05 7:37
sponsorJudah Gabriel Himango1-Sep-05 7:37 
QuestionMSDE 2000 Pin
theStorminMormon1-Sep-05 3:11
theStorminMormon1-Sep-05 3:11 
AnswerRe: MSDE 2000 Pin
Michael P Butler1-Sep-05 3:46
Michael P Butler1-Sep-05 3:46 
GeneralRe: MSDE 2000 Pin
theStorminMormon1-Sep-05 3:51
theStorminMormon1-Sep-05 3:51 
AnswerRe: MSDE 2000 Pin
Michael P Butler1-Sep-05 4:07
Michael P Butler1-Sep-05 4:07 
GeneralRe: MSDE 2000 Pin
theStorminMormon1-Sep-05 4:19
theStorminMormon1-Sep-05 4:19 
GeneralRe: MSDE 2000 Pin
mav.northwind1-Sep-05 5:49
mav.northwind1-Sep-05 5:49 
GeneralRe: MSDE 2000 Pin
theStorminMormon1-Sep-05 6:14
theStorminMormon1-Sep-05 6:14 
Questionmaster volume control in c# Pin
richard sheldon1-Sep-05 3:10
richard sheldon1-Sep-05 3:10 

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.