473,388 Members | 1,327 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,388 software developers and data experts.

Can't find this one

Okay, DataGrids.... lovely lil buggerz
I have a dataset, that has a table with 4 rows. I databound the datagrid to
this, but, here's what I would like to do.... I would like to add a
CheckBox Column as the first column of this bound datagrid, and the CheckBox
value has nothing to do with the underlying table. It's to tell me, as I
parse through the rows of the datagrid, if I need to do a perticular action.
I have searched for 5 hours and really have come up to a loss....

Thanks
Sueffel
Nov 20 '05 #1
6 1106
this is something am using...
am using two pictures(images) one blank and other with check sign. when
user click on a first column of row i swap image (using cellpicture
property). then while parsing i check which image is currently there in
first column. very straight forward solution....
one thing i shud tell u. i used Flexgrid for this. am not sure whether
data grid has cellpicture property.

"Sueffel" <so*****@somewhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
Okay, DataGrids.... lovely lil buggerz
I have a dataset, that has a table with 4 rows. I databound the datagrid to this, but, here's what I would like to do.... I would like to add a
CheckBox Column as the first column of this bound datagrid, and the CheckBox value has nothing to do with the underlying table. It's to tell me, as I parse through the rows of the datagrid, if I need to do a perticular action. I have searched for 5 hours and really have come up to a loss....

Thanks
Sueffel

Nov 20 '05 #2
Hi,

Datagridboolcolumn is a checkbox.
http://msdn.microsoft.com/library/de...classtopic.asp

Ken
------------------
"Sueffel" <so*****@somewhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
Okay, DataGrids.... lovely lil buggerz
I have a dataset, that has a table with 4 rows. I databound the datagrid
to
this, but, here's what I would like to do.... I would like to add a
CheckBox Column as the first column of this bound datagrid, and the
CheckBox
value has nothing to do with the underlying table. It's to tell me, as I
parse through the rows of the datagrid, if I need to do a perticular
action.
I have searched for 5 hours and really have come up to a loss....

Thanks
Sueffel

Nov 20 '05 #3

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OX****************@TK2MSFTNGP10.phx.gbl...
Hi,

Datagridboolcolumn is a checkbox.
http://msdn.microsoft.com/library/de...classtopic.asp
Ken
------------------
"Sueffel" <so*****@somewhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
Okay, DataGrids.... lovely lil buggerz
I have a dataset, that has a table with 4 rows. I databound the datagrid to
this, but, here's what I would like to do.... I would like to add a
CheckBox Column as the first column of this bound datagrid, and the
CheckBox
value has nothing to do with the underlying table. It's to tell me, as I parse through the rows of the datagrid, if I need to do a perticular
action.
I have searched for 5 hours and really have come up to a loss....

Thanks
Sueffel


Cool, but, that's not quite what I'm concerned about. The DataGrid is bound
to a Table in a DataSet, and this table has 4 columns. I need to add a 5th,
unmapped column to the datagrid and make it a CheckMark. I'm going to play
around with it a little bit....

Thanks for the site though, gives me a little more insight thanI had
before....

Sueffel
Nov 20 '05 #4
Hi,

You can add a column to the datatable.

Dim dc As New DataColumn("MyBoolColumn", GetType(Boolean))

ds.Tables("Categories").Columns.Add(dc)

Dim dr As DataRow

For Each dr In ds.Tables("Categories").Rows

dr.BeginEdit()

dr("MyBoolColumn") = False

dr.EndEdit()

Next

Ken
----------------
"Sueffel" <so*****@somewhere.com> wrote in message
news:eO*************@TK2MSFTNGP11.phx.gbl...

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OX****************@TK2MSFTNGP10.phx.gbl...
Hi,

Datagridboolcolumn is a checkbox.

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

Ken
------------------
"Sueffel" <so*****@somewhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
> Okay, DataGrids.... lovely lil buggerz
> I have a dataset, that has a table with 4 rows. I databound the datagrid > to
> this, but, here's what I would like to do.... I would like to add a
> CheckBox Column as the first column of this bound datagrid, and the
> CheckBox
> value has nothing to do with the underlying table. It's to tell me, as I > parse through the rows of the datagrid, if I need to do a perticular
> action.
> I have searched for 5 hours and really have come up to a loss....
>
> Thanks
> Sueffel
>
>


Cool, but, that's not quite what I'm concerned about. The DataGrid is
bound
to a Table in a DataSet, and this table has 4 columns. I need to add a
5th,
unmapped column to the datagrid and make it a CheckMark. I'm going to
play
around with it a little bit....

Thanks for the site though, gives me a little more insight thanI had
before....

Sueffel

Nov 20 '05 #5

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uw**************@TK2MSFTNGP09.phx.gbl...
Hi,

You can add a column to the datatable.

Dim dc As New DataColumn("MyBoolColumn", GetType(Boolean))

ds.Tables("Categories").Columns.Add(dc)

Dim dr As DataRow

For Each dr In ds.Tables("Categories").Rows

dr.BeginEdit()

dr("MyBoolColumn") = False

dr.EndEdit()

Next

Ken
----------------
"Sueffel" <so*****@somewhere.com> wrote in message
news:eO*************@TK2MSFTNGP11.phx.gbl...

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OX****************@TK2MSFTNGP10.phx.gbl...
Hi,

Datagridboolcolumn is a checkbox.

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

Ken
------------------
"Sueffel" <so*****@somewhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
> Okay, DataGrids.... lovely lil buggerz
> I have a dataset, that has a table with 4 rows. I databound the

datagrid
> to
> this, but, here's what I would like to do.... I would like to add a
> CheckBox Column as the first column of this bound datagrid, and the
> CheckBox
> value has nothing to do with the underlying table. It's to tell me,
as I
> parse through the rows of the datagrid, if I need to do a perticular
> action.
> I have searched for 5 hours and really have come up to a loss....
>
> Thanks
> Sueffel
>
>

Cool, but, that's not quite what I'm concerned about. The DataGrid is
bound
to a Table in a DataSet, and this table has 4 columns. I need to add a
5th,
unmapped column to the datagrid and make it a CheckMark. I'm going to
play
around with it a little bit....

Thanks for the site though, gives me a little more insight thanI had
before....

Sueffel


Coool, wasn't sure if that was going to screw with the mappings..... Had to
run a network drop, so haven't been able to play yet...

Thanks again,
Sueffel
Nov 20 '05 #6

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:uw**************@TK2MSFTNGP09.phx.gbl...
Hi,

You can add a column to the datatable.

Dim dc As New DataColumn("MyBoolColumn", GetType(Boolean))

ds.Tables("Categories").Columns.Add(dc)

Dim dr As DataRow

For Each dr In ds.Tables("Categories").Rows

dr.BeginEdit()

dr("MyBoolColumn") = False

dr.EndEdit()

Next

Ken
----------------
"Sueffel" <so*****@somewhere.com> wrote in message
news:eO*************@TK2MSFTNGP11.phx.gbl...

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OX****************@TK2MSFTNGP10.phx.gbl...
Hi,

Datagridboolcolumn is a checkbox.

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

Ken
------------------
"Sueffel" <so*****@somewhere.com> wrote in message
news:OD**************@TK2MSFTNGP12.phx.gbl...
> Okay, DataGrids.... lovely lil buggerz
> I have a dataset, that has a table with 4 rows. I databound the

datagrid
> to
> this, but, here's what I would like to do.... I would like to add a
> CheckBox Column as the first column of this bound datagrid, and the
> CheckBox
> value has nothing to do with the underlying table. It's to tell me,
as I
> parse through the rows of the datagrid, if I need to do a perticular
> action.
> I have searched for 5 hours and really have come up to a loss....
>
> Thanks
> Sueffel
>
>

Cool, but, that's not quite what I'm concerned about. The DataGrid is
bound
to a Table in a DataSet, and this table has 4 columns. I need to add a
5th,
unmapped column to the datagrid and make it a CheckMark. I'm going to
play
around with it a little bit....

Thanks for the site though, gives me a little more insight thanI had
before....

Sueffel



How does one change the TriState of the check?
Nov 20 '05 #7

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

Similar topics

9
by: Peter | last post by:
My problem is the last bit of coding below, the like statement does not work. what I have is a product options field and in it is stored characters i.e. "avcy" etc what the query does is...
3
by: ano1optimist | last post by:
I've got the code to search through a directory for word documents, open the doc, search for specific text... but I'm trying to extract data that immediately follows the selected highlighted text. ...
0
by: amit | last post by:
I want to find out that if there is a mechanism to find a text inside a C# file and replace it with another string. I am using DTE to do it, the find proerty does it, the results are getting...
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
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: 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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.