datagrid coantianing checkbox as column

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2007
Posts: 370
Reputation: greeny_1984 is an unknown quantity at this point 
Solved Threads: 29
greeny_1984's Avatar
greeny_1984 greeny_1984 is offline Offline
Posting Whiz

datagrid coantianing checkbox as column

 
0
  #1
Jun 13th, 2007
hi everyone,
i am doing a application on datagrid containing checkbox.when the checkbox is checked ,the textbox present in the next column of the datagrid must be visible otherwise it should not.can any one help in this matter.
bye
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 812
Reputation: arjunsasidharan is on a distinguished road 
Solved Threads: 13
arjunsasidharan's Avatar
arjunsasidharan arjunsasidharan is offline Offline
Practically a Posting Shark

Re: datagrid coantianing checkbox as column

 
0
  #2
Jun 13th, 2007
What are your trying to say is when the checkbox is true one of the cells in the datagrid should be visible?

  1. If checkbox.check = True Then
  2.  
  3. DataGrid1.Columns[INDEX].Visible=True;
  4.  
  5. Elseif Checkbox.check = False Then
  6.  
  7. DataGrid1.Columns[INDEX].Visible=False;
There is just two ways to live your life.
One is as though nothing is a miracle.
The other is as if everything is.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC