Click here to Skip to main content
15,914,014 members
Home / Discussions / C#
   

C#

 
GeneralRe: Performance monitor Pin
sathish s6-Apr-06 19:29
sathish s6-Apr-06 19:29 
QuestionCalling a ftp application from C# Pin
krishna195-Apr-06 19:38
krishna195-Apr-06 19:38 
QuestionPls hedp me, its urgent Pin
anurajju5-Apr-06 19:31
anurajju5-Apr-06 19:31 
GeneralRe: Pls hedp me, its urgent Pin
Guffa5-Apr-06 21:09
Guffa5-Apr-06 21:09 
GeneralRe: Pls hedp me, its urgent Pin
anurajju5-Apr-06 22:26
anurajju5-Apr-06 22:26 
GeneralRe: Pls hedp me, its urgent Pin
Colin Angus Mackay5-Apr-06 22:54
Colin Angus Mackay5-Apr-06 22:54 
Questionplease help me in c# datagrid Pin
simran0075-Apr-06 19:30
simran0075-Apr-06 19:30 
AnswerRe: please help me in c# datagrid Pin
sathish s5-Apr-06 20:46
sathish s5-Apr-06 20:46 
You can use Datacoulumn.Expression property.
code from msdn
[CODE]
private void CalcColumns(){
DataColumn cPrice;
DataColumn cTax;
DataColumn cTotal;
DataTable myTable = new DataTable ();

// Create the first column.
cPrice = new DataColumn();
cPrice.DataType = System.Type.GetType("System.Decimal");
cPrice.ColumnName = "price";
cPrice.DefaultValue = 50;

// Create the second, calculated, column.
cTax = new DataColumn();
cTax.DataType = System.Type.GetType("System.Decimal");
cTax.ColumnName = "tax";
cTax.Expression = "price * 0.0862";

// Create third column.
cTotal = new DataColumn();
cTotal.DataType = System.Type.GetType("System.Decimal");
cTotal.ColumnName = "total";
cTotal.Expression = "price + tax";

// Add columns to DataTable.
myTable.Columns.Add(cPrice);
myTable.Columns.Add(cTax);
myTable.Columns.Add(cTotal);
DataRow myRow;
myRow = myTable.NewRow();
myTable.Rows.Add(myRow);
DataView myView = new DataView(myTable);
dataGrid1.DataSource = myView;
}
[/CODE]

QuestionHelp me in AddHandler from VB.NET to C# Pin
khanfresh5-Apr-06 18:45
khanfresh5-Apr-06 18:45 
AnswerRe: Help me in AddHandler from VB.NET to C# Pin
Robert Rohde5-Apr-06 19:27
Robert Rohde5-Apr-06 19:27 
GeneralRe: Help me in AddHandler from VB.NET to C# Pin
khanfresh6-Apr-06 14:36
khanfresh6-Apr-06 14:36 
QuestionLocking XML File Pin
emran8345-Apr-06 14:24
emran8345-Apr-06 14:24 
AnswerRe: Locking XML File Pin
Christian Graus5-Apr-06 15:00
protectorChristian Graus5-Apr-06 15:00 
GeneralRe: Locking XML File Pin
emran8345-Apr-06 15:37
emran8345-Apr-06 15:37 
GeneralRe: Locking XML File Pin
Christian Graus5-Apr-06 16:04
protectorChristian Graus5-Apr-06 16:04 
QuestionHow to send email using SMTP with Authentication Pin
emran8345-Apr-06 14:15
emran8345-Apr-06 14:15 
QuestionPolynomial coefficients... Pin
KORCARI5-Apr-06 13:10
KORCARI5-Apr-06 13:10 
AnswerRe: Polynomial coefficients... Pin
Christian Graus5-Apr-06 13:46
protectorChristian Graus5-Apr-06 13:46 
QuestionDataGrid Edit a Cell Pin
cppdotnet5-Apr-06 10:53
cppdotnet5-Apr-06 10:53 
AnswerRe: DataGrid Edit a Cell Pin
russellsoft6-Apr-06 4:36
russellsoft6-Apr-06 4:36 
QuestionFor loop performance problem in .NET 2.0 Pin
ayevkin5-Apr-06 10:32
ayevkin5-Apr-06 10:32 
Questionhow to play wav file in C# Pin
nauty5-Apr-06 9:49
nauty5-Apr-06 9:49 
AnswerRe: how to play wav file in C# Pin
Ed.Poore5-Apr-06 9:54
Ed.Poore5-Apr-06 9:54 
GeneralRe: how to play wav file in C# Pin
Graham Nimbley5-Apr-06 10:51
Graham Nimbley5-Apr-06 10:51 
GeneralRe: how to play wav file in C# Pin
Ed.Poore5-Apr-06 12:07
Ed.Poore5-Apr-06 12:07 

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.