PC Review


Reply
Thread Tools Rate Thread

Datagrid & Not Allowing A Column Edit

 
 
CJ
Guest
Posts: n/a
 
      16th Aug 2004
I have a datagrid that for the sake of example has Name, Address, City,
State and Zip

I would like to block the edit on "City" column of the grid while allowing
edits on the remaining columns.

I am missing something. A pointer in the right direction would be
appreciated

Thanks
CJ


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      17th Aug 2004
Hi,

Add a tablestyle to your datagrid. Set the readonly property for
the datagrid text box column you want to be edited to true.

http://msdn.microsoft.com/library/de...asicprimer.asp

Ken
----------------------------
"CJ" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
I have a datagrid that for the sake of example has Name, Address, City,
State and Zip

I would like to block the edit on "City" column of the grid while allowing
edits on the remaining columns.

I am missing something. A pointer in the right direction would be
appreciated

Thanks
CJ



 
Reply With Quote
 
CJ
Guest
Posts: n/a
 
      17th Aug 2004
Thanks Ken!

That's the ticket I was looking for.

CJ


"Ken Tucker [MVP]" <(E-Mail Removed)> wrote in message
news:OccY69%(E-Mail Removed)...
> Hi,
>
> Add a tablestyle to your datagrid. Set the readonly property for
> the datagrid text box column you want to be edited to true.
>
>

http://msdn.microsoft.com/library/de...asicprimer.asp
>
> Ken
> ----------------------------
> "CJ" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> I have a datagrid that for the sake of example has Name, Address, City,
> State and Zip
>
> I would like to block the edit on "City" column of the grid while allowing
> edits on the remaining columns.
>
> I am missing something. A pointer in the right direction would be
> appreciated
>
> Thanks
> CJ
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid allow edit in column when it's new row Peter Proost Microsoft VB .NET 2 26th Apr 2005 01:41 PM
Datagrid Edit Column don Microsoft Dot NET 2 5th Dec 2003 06:25 PM
Datagrid edit column don Microsoft Dot NET 0 3rd Dec 2003 08:51 PM
Help please: trying to edit column in a datagrid amine Microsoft C# .NET 1 6th Nov 2003 12:34 PM
Allowing user to change the width of a datagrid column zsource Microsoft Dot NET Compact Framework 3 15th Aug 2003 10:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 PM.