Wednesday, December 5, 2007

Search Result

Search Result: "Re: Draw a table in windows form Posted By A.Wegierski on Oct 22, 2004 DataGrid not required datatable to bind at design time. In such cases objects inside datagrid aren't created - are invisible. You can use DesignMode property to add a dummy datatable with datarow(s). True difficulty is in another place: how to add controls into DataGrid. Standard controls are: TextBox and CheckBox column styles. You can try to create - or find - UserControl. how to make my textbox focus in an editable datagrid? Posted By crayon on Oct 21, 2004 there is my code for update command.. Public Sub DataUpdate(ByVal Sender As Object, ByVal E As DataGridCommandEventArgs) If CheckTime(CType(E.Item.FindControl('txtStd'), TextBox).Text) = 'Error' Then Response.Write(msgbox('Invalid Input!!')) setFocus(CType(E.Item.FindControl('txtStd'), TextBox)) Exit Sub End If end sub here is my setfocus functions.. Private Sub setFocus(ByVal ctrl As System.Web.UI.Control) Dim s As String = '' RegisterStartupScript('focus', s) End Sub the setfocus function is working properly when the control is outside the datagrid.. but i cant make it focus in my editable datagrid.. anyone knows what's going wrong?? Re: DataGrid , HeadClick Event Posted By A.Wegierski on Oct 21, 2004 Simply use Click event and check what was clicked using HitTest() method. HitTestInfo object has an error - it's"

No comments: