Can't find this one

  • Thread starter Thread starter Sueffel
  • Start date Start date
S

Sueffel

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
 
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.
 
Ken Tucker said:
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
 
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
 
Ken Tucker said:
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
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
 
Ken Tucker said:
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

How does one change the TriState of the check?
 
Back
Top