Click here to Skip to main content
15,913,238 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to loop in control collection?? Pin
Mazdak17-Sep-03 7:53
Mazdak17-Sep-03 7:53 
Questionhow to handle click event for a multiple button ?? Pin
Tridip Bhattacharjee17-Sep-03 4:00
professionalTridip Bhattacharjee17-Sep-03 4:00 
AnswerRe: how to handle click event for a multiple button ?? Pin
MrEyes17-Sep-03 4:28
MrEyes17-Sep-03 4:28 
GeneralWhy disable debug Pin
Old Gun17-Sep-03 3:37
Old Gun17-Sep-03 3:37 
Generalinterop struct types Pin
Tym!17-Sep-03 2:59
Tym!17-Sep-03 2:59 
GeneralMarshaling Structs Reference Pin
Tym!17-Sep-03 4:26
Tym!17-Sep-03 4:26 
GeneralEditable ListView items Pin
Rickard Andersson2017-Sep-03 1:28
Rickard Andersson2017-Sep-03 1:28 
GeneralRe: Editable ListView items Pin
JoeGunchy17-Sep-03 9:22
JoeGunchy17-Sep-03 9:22 
You need to create a tableSyle, something like this:

DataGridColumnStyle itm;
DataGridTableStyle tableStyle = new DataGridTableStyle();
tableStyle.MappingName = dsErrorDetails.Tables[0].TableName;

itm = new DataGridTextBoxColumn();
itm.Width = 120;
itm.NullText = "";
itm.HeaderText = "header"
itm.MappingName = dsTables[0].Columns[y].ColumnName;
itm.ReadOnly = false;

tableStyle.GridColumnStyles.Add(itm);

So, you create an "itm" for your particular column that you would like to be editable. And set the ReadOnly to false. Here is where you can also adjust the width, sort, etc. of the column.

Hope this helps...


GeneralRe: Editable ListView items Pin
Rickard Andersson2017-Sep-03 10:46
Rickard Andersson2017-Sep-03 10:46 
GeneralWindows service, OnShutDown not executed Pin
EnkelIk16-Sep-03 23:18
EnkelIk16-Sep-03 23:18 
GeneralRe: Windows service, OnShutDown not executed Pin
EnkelIk16-Sep-03 23:36
EnkelIk16-Sep-03 23:36 
GeneralKeyboard hooks - Problem Pin
CyberKewl16-Sep-03 22:21
CyberKewl16-Sep-03 22:21 
Generalunicode in c# Pin
Anonymous16-Sep-03 21:13
Anonymous16-Sep-03 21:13 
GeneralRe: unicode in c# Pin
Oleksandr Kucherenko17-Sep-03 0:02
Oleksandr Kucherenko17-Sep-03 0:02 
GeneralOne ScrollBar controls two DataViews Pin
JoeGunchy16-Sep-03 14:40
JoeGunchy16-Sep-03 14:40 
GeneralC# is the best Pin
Snyp16-Sep-03 12:13
Snyp16-Sep-03 12:13 
GeneralRe: C# is the best Pin
Rickard Andersson2017-Sep-03 1:30
Rickard Andersson2017-Sep-03 1:30 
GeneralRe: C# is the best Pin
Snyp17-Sep-03 1:42
Snyp17-Sep-03 1:42 
GeneralRe: C# is the best Pin
Rickard Andersson2017-Sep-03 2:42
Rickard Andersson2017-Sep-03 2:42 
GeneralRe: C# is the best Pin
Snyp17-Sep-03 11:06
Snyp17-Sep-03 11:06 
GeneralRe: C# is the best Pin
Rickard Andersson2017-Sep-03 21:53
Rickard Andersson2017-Sep-03 21:53 
GeneralRe: C# is the best Pin
Snyp18-Sep-03 10:46
Snyp18-Sep-03 10:46 
GeneralEmbed WindowsMediaPlayer Problem Pin
pahluwalia16-Sep-03 11:46
pahluwalia16-Sep-03 11:46 
GeneralSimple/Stupid Casting Question Pin
MKlucher16-Sep-03 11:13
MKlucher16-Sep-03 11:13 
GeneralRe: Simple/Stupid Casting Question Pin
Travis D. Mathison16-Sep-03 11:43
Travis D. Mathison16-Sep-03 11:43 

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.