in this case it will check the value of checkbox in datagrid know??? Is it comparing the value from Database?
On Mon, Apr 6, 2009 at 12:54 AM, Stephen Russell <[email protected]>wrote: > When you are binding the data: > > CheckBox1.Checked = dt.Rows(0).Item("Boolean") > > > > > > ………………………………………………………………… > > Stephen Russell – > > Senior Visual Studio Developer, DBA > > > > Memphis, TN > > 901.246-0159 > > > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Jeena Ajiesh > *Sent:* Sunday, April 05, 2009 3:41 AM > *To:* [email protected] > *Subject:* [DotNetDevelopment] Checkbox in datagrid. > > > > Hi all, > > I have a problem in binding the values from the database to checkbox. > > I'm marking the attendance of a class . > > > > 'Present' - Checkbox is checked > > 'Absent' -- Checkbox is unchecked. > > > > In database i can insert this absent and present. > > But wen retrieving the values of checkbox along with student id, & class, i > can't bind that correct value to the checkbox. > > At the databind, all the checkbox is checked. > > Wer to do this conditional test??? > > If the value in database is 'Absent' , the checkbox is unchecked. Else it > is checked. > > Please help. > > > > I'm doing in vs 2005, asp.net, vb. > > > How to resolve this? > > > > > -- > **************** > Thanks & Regards, > Jeena Ajiesh > Email: [email protected] > [email protected] > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.0.238 / Virus Database: 270.11.41/2041 - Release Date: 04/04/09 > 16:53:00 > -- **************** Thanks & Regards, Jeena Ajiesh Email: [email protected] [email protected]
