Click here to Skip to main content
15,901,426 members
Home / Discussions / C#
   

C#

 
AnswerRe: String in UTF-8 format was inserted to DB Pin
Ben Fair12-Jan-09 8:06
Ben Fair12-Jan-09 8:06 
GeneralRe: String in UTF-8 format was inserted to DB Pin
Miro7712-Jan-09 20:23
Miro7712-Jan-09 20:23 
AnswerRe: String in UTF-8 format was inserted to DB Pin
Guffa12-Jan-09 13:34
Guffa12-Jan-09 13:34 
QuestionHow to create a class that can be used like a DataTable? Pin
Michael Sync12-Jan-09 4:57
Michael Sync12-Jan-09 4:57 
AnswerRe: How to create a class that can be used like a DataTable? Pin
Moim Hossain12-Jan-09 4:59
Moim Hossain12-Jan-09 4:59 
GeneralRe: How to create a class that can be used like a DataTable? Pin
Michael Sync12-Jan-09 5:03
Michael Sync12-Jan-09 5:03 
GeneralRe: How to create a class that can be used like a DataTable? Pin
Moim Hossain12-Jan-09 5:11
Moim Hossain12-Jan-09 5:11 
GeneralRe: How to create a class that can be used like a DataTable? Pin
Michael Sync12-Jan-09 5:47
Michael Sync12-Jan-09 5:47 
Yes. I'm thinking to have a class like below.

class MyDataRow{
}

class MyDataColumn{
}

class MyDataTable{
List<MyDataRow> Rows{}
List<MyDataColumn> Columns{}
}


but

1) I'm not sure whether how I can make my class as a binding class.

eg.

VM

public MyDataTable MyData{
set{..
....PropertyChanged(..)....
}
get{..}
}

<DataGrid ItemSource="{Binding MyData}" />

2. How can I know whether new column or row has been added to now??


E.g.

MyDataTable mydata = new MyDataTable();


mydata.Columns.Add(new MyDataColumn() { Name = "A" });
mydata.Columns.Add(new MyDataColumn() { Name = "B" });
mydata.Columns.Add(new MyDataColumn() { Name = "C" });


Thanks in advance.
GeneralRe: How to create a class that can be used like a DataTable? Pin
Not Active12-Jan-09 5:52
mentorNot Active12-Jan-09 5:52 
GeneralRe: How to create a class that can be used like a DataTable? Pin
Michael Sync12-Jan-09 6:03
Michael Sync12-Jan-09 6:03 
GeneralRe: How to create a class that can be used like a DataTable? Pin
Not Active12-Jan-09 8:35
mentorNot Active12-Jan-09 8:35 
Questioncan delegate return multiple values with different datatypes Pin
suni_dotnet12-Jan-09 4:31
suni_dotnet12-Jan-09 4:31 
AnswerRe: can delegate return multiple values with different datatypes Pin
Rutvik Dave12-Jan-09 4:42
professionalRutvik Dave12-Jan-09 4:42 
AnswerRe: can delegate return multiple values with different datatypes Pin
Eddy Vluggen12-Jan-09 4:43
professionalEddy Vluggen12-Jan-09 4:43 
AnswerRe: can delegate return multiple values with different datatypes Pin
Ben Fair12-Jan-09 8:01
Ben Fair12-Jan-09 8:01 
AnswerRe: can delegate return multiple values with different datatypes Pin
Jon Rista13-Jan-09 9:48
Jon Rista13-Jan-09 9:48 
Questioninsert date to the data base Pin
abu rakan12-Jan-09 4:24
abu rakan12-Jan-09 4:24 
AnswerRe: insert date to the data base Pin
SeMartens12-Jan-09 4:29
SeMartens12-Jan-09 4:29 
GeneralRe: insert date to the data base Pin
abu rakan12-Jan-09 10:25
abu rakan12-Jan-09 10:25 
GeneralRe: insert date to the data base Pin
SeMartens12-Jan-09 20:58
SeMartens12-Jan-09 20:58 
AnswerRe: insert date to the data base Pin
Wendelius12-Jan-09 12:07
mentorWendelius12-Jan-09 12:07 
Question[Message Deleted] Pin
JGroen12-Jan-09 4:20
JGroen12-Jan-09 4:20 
AnswerRe: INotifyPropertyChanged with user controls Pin
Not Active12-Jan-09 4:44
mentorNot Active12-Jan-09 4:44 
AnswerRe: INotifyPropertyChanged with user controls Pin
Moim Hossain12-Jan-09 4:48
Moim Hossain12-Jan-09 4:48 
QuestionHow to abort filling a dataset? Pin
kasatch12-Jan-09 4:03
kasatch12-Jan-09 4:03 

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.