Click here to Skip to main content
16,020,741 members
Home / Discussions / C#
   

C#

 
Questionoutlook sync Pin
John_276-Aug-09 23:06
John_276-Aug-09 23:06 
QuestionBinaryFormatter.Deserialization SerializationException Pin
Trapper-Hell6-Aug-09 22:41
Trapper-Hell6-Aug-09 22:41 
AnswerRe: BinaryFormatter.Deserialization SerializationException Pin
Luc Pattyn7-Aug-09 0:27
sitebuilderLuc Pattyn7-Aug-09 0:27 
QuestionAn operation was attempted on something that is not a socket Pin
Vivek Vijayan6-Aug-09 21:32
Vivek Vijayan6-Aug-09 21:32 
AnswerRe: An operation was attempted on something that is not a socket Pin
Luc Pattyn7-Aug-09 0:31
sitebuilderLuc Pattyn7-Aug-09 0:31 
QuestionSystem.Net.Mail - SMTP Client - Authentication Pin
James M Buist6-Aug-09 21:20
James M Buist6-Aug-09 21:20 
AnswerRe: System.Net.Mail - SMTP Client - Authentication Pin
Manas Bhardwaj6-Aug-09 22:27
professionalManas Bhardwaj6-Aug-09 22:27 
QuestionHow to save the property of the user-defined column ? Pin
mctramp1686-Aug-09 20:18
mctramp1686-Aug-09 20:18 
public class TXDataGridViewNumericColumn : DataGridViewColumn
{
public TXDataGridViewNumericColumn() : base(new TXNumericCell())
{
this.InputType = NumericType.Integer;
}

public override DataGridViewCell CellTemplate
{
get
{
return base.CellTemplate;
}
set
{
if (value != null &&
!value.GetType().IsAssignableFrom(typeof(TXNumericCell)))
{
throw new InvalidCastException("Must be a CalendarCell");
}
base.CellTemplate = value;
}

}

private NumericType m_NumericType;

public enum NumericType
{
Decimal,
Integer,
PositiveDecimal,
NegativeDecimal,
PositiveInteger,
NegativeInteger
}

public NumericType InputType
{
get { return m_NumericType; }
set { m_NumericType = value; }
}

public ICollection testCollection
{
get
{
return Icollection;
}
set
{
Icollection = value;
}
}
private ICollection Icollection;


public override object Clone()
{
DataGridViewColumn col = (DataGridViewColumn)base.Clone();
col.CellTemplate = new TXNumericCell();
return col;
}

}


I define a column by inheritting the DataGridViewColumn, and add a property for this column, but in the design-mode when I change the value of this property , the value can not be saved, the codes as above. how to solve this issue? Thanks in advance!
AnswerRe: How to save the property of the user-defined column ? Pin
Cracked-Down6-Aug-09 20:28
Cracked-Down6-Aug-09 20:28 
QuestionWiewing Office Document in Web Browser Pin
egpuyos6-Aug-09 20:04
egpuyos6-Aug-09 20:04 
AnswerRe: Wiewing Office Document in Web Browser Pin
Mycroft Holmes6-Aug-09 20:10
professionalMycroft Holmes6-Aug-09 20:10 
AnswerRe: Wiewing Office Document in Web Browser Pin
Baeltazor7-Aug-09 0:43
Baeltazor7-Aug-09 0:43 
QuestionDifference between two date/times Pin
mjawadkhatri6-Aug-09 19:55
mjawadkhatri6-Aug-09 19:55 
AnswerRe: Difference between two date/times Pin
Vikram A Punathambekar6-Aug-09 20:15
Vikram A Punathambekar6-Aug-09 20:15 
GeneralRe: Difference between two date/times Pin
mjawadkhatri6-Aug-09 20:21
mjawadkhatri6-Aug-09 20:21 
GeneralRe: Difference between two date/times Pin
Vikram A Punathambekar6-Aug-09 20:30
Vikram A Punathambekar6-Aug-09 20:30 
GeneralRe: Difference between two date/times Pin
mjawadkhatri6-Aug-09 20:37
mjawadkhatri6-Aug-09 20:37 
AnswerRe: Difference between two date/times Pin
Luc Pattyn7-Aug-09 0:39
sitebuilderLuc Pattyn7-Aug-09 0:39 
GeneralRe: Difference between two date/times Pin
mjawadkhatri7-Aug-09 2:02
mjawadkhatri7-Aug-09 2:02 
GeneralRe: Difference between two date/times Pin
Luc Pattyn7-Aug-09 2:40
sitebuilderLuc Pattyn7-Aug-09 2:40 
GeneralRe: Difference between two date/times Pin
Vikram A Punathambekar7-Aug-09 6:33
Vikram A Punathambekar7-Aug-09 6:33 
GeneralRe: Difference between two date/times Pin
Luc Pattyn7-Aug-09 6:59
sitebuilderLuc Pattyn7-Aug-09 6:59 
QuestionWiewing Office Document in Web Browser Pin
egpuyos6-Aug-09 19:51
egpuyos6-Aug-09 19:51 
AnswerRe: Wiewing Office Document in Web Browser Pin
dan!sh 6-Aug-09 20:00
professional dan!sh 6-Aug-09 20:00 
GeneralRe: Wiewing Office Document in Web Browser Pin
Baeltazor7-Aug-09 0:29
Baeltazor7-Aug-09 0:29 

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.