Click here to Skip to main content
15,886,096 members
Home / Discussions / C#
   

C#

 
GeneralRe: XML transfer Pin
Anonymous12-Sep-03 5:48
Anonymous12-Sep-03 5:48 
GeneralAccessing com+ through web service Pin
batusai_3rd11-Sep-03 15:12
batusai_3rd11-Sep-03 15:12 
GeneralAccessing com+ through web service Pin
wan2tri11-Sep-03 15:04
susswan2tri11-Sep-03 15:04 
QuestionHow do I deploy my application Pin
sumeat11-Sep-03 15:01
sumeat11-Sep-03 15:01 
AnswerRe: How do I deploy my application Pin
Braulio Dez12-Sep-03 2:24
Braulio Dez12-Sep-03 2:24 
GeneralComboBox in DataGrid Pin
pahluwalia11-Sep-03 12:35
pahluwalia11-Sep-03 12:35 
GeneralRe: ComboBox in DataGrid Pin
sumeat11-Sep-03 14:54
sumeat11-Sep-03 14:54 
GeneralRe: ComboBox in DataGrid Pin
pahluwalia12-Sep-03 4:21
pahluwalia12-Sep-03 4:21 
Hi Suhas,

I tried what you said but it's not working the way I implemented it. I'll explain what I did.

//Create a custom Column Style for the 1st Col: Questions
CurrencyManager cm = (CurrencyManager)this.BindingContext[dtTable];
PropertyDescriptor pd = cm.GetItemProperties()[0];//Get Prop for the 1st col

MyControls.MyDataGridTextBoxColumn myColStyle = new MyControls.MyDataGridTextBoxColumn(pd);

newGrid[indexPage].TableStyles.Add(dgdtblStyle);
newGrid[indexPage].TableStyles[0].GridColumnStyles.Add(myColStyle);

And to create the MyControl Class:

public class MyDataGridTextBoxColumn: DataGridTextBoxColumn
{
public MyDataGridTextBoxColumn(PropertyDescriptor pd) : base(pd)
{ }
protected override void Edit(CurrencyManager cm, int rowNum, Rectangle bounds, bool readOnly)
{
MessageBox.Show("in Edit");
if (!readOnly)
base.Edit(cm, rowNum, bounds, readOnly);
}
}


But that MessageBox is bever clicked & nothing diff happens when I try to edit the 0th Col !

What do you think I am doing wrong ?

Thanks.
Paul
GeneralRe: ComboBox in DataGrid Pin
pahluwalia12-Sep-03 5:24
pahluwalia12-Sep-03 5:24 
GeneralRe: ComboBox in DataGrid Pin
sumeat12-Sep-03 13:24
sumeat12-Sep-03 13:24 
GeneralRe: ComboBox in DataGrid Pin
A.Wegierski11-Sep-03 19:20
A.Wegierski11-Sep-03 19:20 
GeneralRe: ComboBox in DataGrid Pin
pahluwalia12-Sep-03 8:01
pahluwalia12-Sep-03 8:01 
GeneralCustom "Add Item" Pin
Mark Sanders11-Sep-03 6:13
Mark Sanders11-Sep-03 6:13 
GeneralBHO (Browser Helper Object) Pin
0siris11-Sep-03 4:54
0siris11-Sep-03 4:54 
GeneralRe: BHO (Browser Helper Object) Pin
Kannan Kalyanaraman11-Sep-03 5:41
Kannan Kalyanaraman11-Sep-03 5:41 
GeneralTrapping mouse right click Pin
Mahesh Varma11-Sep-03 4:45
Mahesh Varma11-Sep-03 4:45 
GeneralRe: Trapping mouse right click Pin
NetPointerIN11-Sep-03 10:06
NetPointerIN11-Sep-03 10:06 
GeneralFind Dialog Box Pin
Tibor Blazko11-Sep-03 3:50
Tibor Blazko11-Sep-03 3:50 
GeneralRe: Find Dialog Box Pin
Kannan Kalyanaraman11-Sep-03 5:35
Kannan Kalyanaraman11-Sep-03 5:35 
GeneralComboBox - Item Selection Pin
MrEyes11-Sep-03 3:22
MrEyes11-Sep-03 3:22 
GeneralRe: ComboBox - Item Selection Pin
MrEyes11-Sep-03 4:23
MrEyes11-Sep-03 4:23 
GeneralRe: ComboBox - Item Selection Pin
tsigo11-Sep-03 12:51
tsigo11-Sep-03 12:51 
GeneralIt's neither acute or grave.... Pin
bobhoskinsbrother11-Sep-03 0:44
bobhoskinsbrother11-Sep-03 0:44 
GeneralRe: It's neither acute or grave.... Pin
Daniel Turini11-Sep-03 1:12
Daniel Turini11-Sep-03 1:12 
GeneralCompression in C# Pin
Stephane David10-Sep-03 23:27
Stephane David10-Sep-03 23:27 

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.