[thelist] Re: DataGrids: Standard vs Webmatrix
Casey
aspnet at thecrookstons.com
Mon Aug 15 17:29:43 CDT 2005
Never mind - figured it out.
----- Original Message -----
> I'm noticing that datagrids build in WebMatrix have their own namespaces
> which are imported with the <%@ Register TagPrefix="wmx"
> Namespace="Microsoft.Matrix.Framework.Web.UI"... declaration.
>
> In a standard datagrid (not build in WebMatrix) you can discover the value
> of the ButtonColumn the user has clicked as follows:
>
> Sub Show_Details(a As Object, e as DataGridCommandEventArgs)
> Dim getDoc as Integer = gridDocs.DataKeys(CInt(E.Item.ItemIndex))
>
> But, when the datagrid was build in WebMatrix, this same line returns an
> error:
>
> 'DataKeys' is not a member of
> 'Microsoft.Matrix.Framework.Web.UI.SqlDataSourceControl'.
>
> Any idea what the correct WebMatrix syntax would be?
>
> TIA
>
> Casey
>
More information about the thelist
mailing list