Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
AnswerRe: Can a rich text box control displays HTML code correctly? Pin
Stephane Rodriguez.4-Nov-03 8:37
Stephane Rodriguez.4-Nov-03 8:37 
GeneralRe: Can a rich text box control displays HTML code correctly? Pin
trungbkvn4-Nov-03 9:17
trungbkvn4-Nov-03 9:17 
QuestionCan a function return an array of delegates? Pin
Gambit0074-Nov-03 7:27
Gambit0074-Nov-03 7:27 
AnswerYes Pin
Jeff Varszegi4-Nov-03 9:45
professionalJeff Varszegi4-Nov-03 9:45 
AnswerRe: Can a function return an array of delegates? Pin
leppie4-Nov-03 9:52
leppie4-Nov-03 9:52 
GeneralRe: Can a function return an array of delegates? Pin
Gambit0076-Nov-03 14:43
Gambit0076-Nov-03 14:43 
GeneralDataGrid - how to disable adding new rows. Pin
Arcus4-Nov-03 6:59
Arcus4-Nov-03 6:59 
GeneralRe: DataGrid - how to disable adding new rows. Pin
Daniel Zaharia4-Nov-03 9:53
Daniel Zaharia4-Nov-03 9:53 
DataGrid doesn't have such an option, neither DataTable. But DataView has:
AllowNew, plus AllowEdit and AllowDelete. The simpliest way is to set as DataSource of the DataGrid a DataView of your DataTable, and set AllowNew =false.

If you can't set as DataSource a DataView (and DataSource is a DataTable), then you still have a chance , since the data grid actually uses the DefautView of a DataTable . So, you can do something like MyTable.DefaultView.AllowNew=false;

If your DataSource is a DataSet then you can do something like this:


CurrencyManager cm =(CurrencyManager)BindingContext[MyDataGrid.DataSource,MyDataGrid.DataMember]

// Cast the IList to a DataView to set the AllowNew property.
DataView dv = (DataView) cm.List;
dv.AllowNew = false;

Best Regards,
Daniel Zaharia
GeneralRe: DataGrid - how to disable adding new rows. Pin
Arcus5-Nov-03 10:20
Arcus5-Nov-03 10:20 
GeneralStoring data in Clipboard to past into Microsoft Excel Pin
Darryl Borden4-Nov-03 5:53
Darryl Borden4-Nov-03 5:53 
GeneralRe: Storing data in Clipboard to past into Microsoft Excel Pin
John Arlen4-Nov-03 10:43
John Arlen4-Nov-03 10:43 
GeneralRe: Storing data in Clipboard to past into Microsoft Excel Pin
Darryl Borden4-Nov-03 10:54
Darryl Borden4-Nov-03 10:54 
GeneralRe: Storing data in Clipboard to past into Microsoft Excel Pin
Darryl Borden4-Nov-03 11:01
Darryl Borden4-Nov-03 11:01 
Question.net controls + longhorn? Pin
Roger Alsing4-Nov-03 3:37
Roger Alsing4-Nov-03 3:37 
AnswerRe: .net controls + longhorn? Pin
Judah Gabriel Himango4-Nov-03 4:46
sponsorJudah Gabriel Himango4-Nov-03 4:46 
GeneralRe: .net controls + longhorn? Pin
apferreira4-Nov-03 5:05
apferreira4-Nov-03 5:05 
GeneralRe: .net controls + longhorn? Pin
Kannan Kalyanaraman4-Nov-03 5:57
Kannan Kalyanaraman4-Nov-03 5:57 
GeneralRe: .net controls + longhorn? Pin
apferreira4-Nov-03 6:32
apferreira4-Nov-03 6:32 
GeneralClass Licensing...few more ?'s Pin
frank214-Nov-03 2:43
frank214-Nov-03 2:43 
GeneralRe: Class Licensing...few more ?'s Pin
Heath Stewart4-Nov-03 2:48
protectorHeath Stewart4-Nov-03 2:48 
GeneralClass not licensed for use error message Pin
frank214-Nov-03 2:25
frank214-Nov-03 2:25 
GeneralRe: Class not licensed for use error message Pin
Heath Stewart4-Nov-03 2:33
protectorHeath Stewart4-Nov-03 2:33 
GeneralpropertyName of System.ManagementObject Pin
kokain4-Nov-03 0:25
kokain4-Nov-03 0:25 
GeneralRe: propertyName of System.ManagementObject Pin
Kannan Kalyanaraman4-Nov-03 1:04
Kannan Kalyanaraman4-Nov-03 1:04 
GeneralRe: propertyName of System.ManagementObject Pin
Anonymous4-Nov-03 12:37
Anonymous4-Nov-03 12:37 

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.