Loading

Disable a single column in a datagrid

Submitted by: 


I have a datagrid in my project with 7 columns. I want to disable a single column in the datagrid so that user cannot change the values in that particular colum. I want this to happen with allow update option set to true..

pls help me.....



admin's picture

You can't disable it. Instead hide it.

princenathan's picture

datagrid.Columns(0).ReadOnly = True

or you can change the columns 0 into 1,2,3,4,5,6
u told u have 7 columns

Add new comment

(If you're a human, don't change the following field)
Your first name.
(If you're a human, don't change the following field)
Your first name.

Filtered HTML

  • You may insert videos with [video:URL]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.