ralphevertz
Posts: 2
|
Posted: 04/19/2006, 6:40 AM |
|
Hi,
I'm trying to customize my Grid. I want to add a column with a checkbox. This checkbox is gonna display whether the id of a row is present in an other db. So I can't build a query with two db's or something like that.
Adding the column is no problem, but setting any of the checkboxes to true just to see if it works isn't working. Does anyone have any idea how to get this working. In the .vb file Ifound that I have to add the code within the GetResultSet function.
'After execute Select tail @23-03CFFA48
Dim i as Integer
For i = 0 To dr.Count - 1
Dim item as assPagegroupItem = New assPagegroupItem()
item.pgPagegroupId.SetValue(dr(i)("pgPagegroupId"),"")
item.pgName.SetValue(dr(i)("pgName"),"")
item.pgDescription.SetValue(dr(i)("pgDescription"),"")
--> item.pgCheck.SetValue(1,"")
The last sentence is my problem. It is declared in assPagegroupItem but I get an no instance of object error
Thanks
Ralph
|
|
|
ashok_subbu
Posts: 2
|
Posted: 05/16/2006, 11:38 PM |
|
You can use <asp:TemplateColumn> to put check box in the datagrid. This will work fine.
|
|
|
|