473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

datagrid\checkbox

gh
I am filling a datagrid at runtime with the values I want in the
columns. In some of the rows I would like to have a checkbox in the
last column for the user to check. Then when the user clicks the submit
button, I would like to be able to tell which check boxes were checked.
I can get the last column with checkboxes, but they show for each row
I populate in the datagrid. Is there a way to have the checkboxes
appear for certain rows only?

TIA

Feb 24 '06 #1
1 928
Hi GH,

You set checkbox's visible to false in datagrid_ItemDataBound event upon
condition.

HTH

Elton Wang

"gh" wrote:
I am filling a datagrid at runtime with the values I want in the
columns. In some of the rows I would like to have a checkbox in the
last column for the user to check. Then when the user clicks the submit
button, I would like to be able to tell which check boxes were checked.
I can get the last column with checkboxes, but they show for each row
I populate in the datagrid. Is there a way to have the checkboxes
appear for certain rows only?

TIA

Feb 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Morné | last post by:
Hi how do I validate a text value in a datagrid e.g. the user is only allowed to type in a Y or a N. I specifically have a problem with using the PropertyDescriptorCollection. I get the...
1
by: fabrizio | last post by:
Hi, I'd like to fill a datagrid with some boolean data, is it possible to have "checkBox" columns? thanks, Fabrizio
3
by: Randy | last post by:
Hello, I'm creating a table on the fly that is used by a datagrid. I'm also creating a tableStyle that is used for the datagrid to make it look like I want. I'm using the DataGridBoolColumn to...
3
by: Jim H | last post by:
I have a C# .NET web page with a DataGrid that I want to load with data either by binding it or adding Items 1 at a time. One of the columns must be a CheckBox. how do i add a CheckBox column? ...
1
by: momo | last post by:
Hello all, I need help with this. I have a datagrid (dg1) with checkboxes and I want when some rows are selected to populate another datagrid (dg2) with the selected rows from (dg1). Thanks ...
1
by: rodchar | last post by:
hey all, is there any way to get a count of how many checkboxes are checked in a datagrid using client-side scripting? please say yes. thanks, rodchar
4
by: Microsoft | last post by:
Hey I have checkbox control in template of the datagrid. In the item_created event of dg, I added clickevent( maybe it's change event, doesn't matter ) to the checkbox. But I want to know which...
1
by: ABC | last post by:
I wrote a gridview with a itemtemplate column which contain two linkbuttons that will raise event if user clicked button. But I don't know how to identify which row or datarow to be selected. How...
14
by: Satheesh Babu B | last post by:
hai.. am having a checkboxlist..now how do i get the value of the checkbox that is checked in checkboxlist using javascript? Thanks in advance.... Regards,
1
by: sianan | last post by:
I tried to use the following example, to add a checkbox column to a DataGrid in an ASP.NET application: http://www.codeproject.com/aspnet/datagridcheckbox.asp For some reason, I simply CAN'T get...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.