Click here to Skip to main content
15,921,660 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: What is this Code snippet meaning? Pin
Krishnaraj Barvathaya B2-Jun-06 1:12
Krishnaraj Barvathaya B2-Jun-06 1:12 
GeneralRe: What is this Code snippet meaning? Pin
J4amieC2-Jun-06 1:45
J4amieC2-Jun-06 1:45 
GeneralRe: What is this Code snippet meaning? Pin
FrankyT2-Jun-06 16:28
FrankyT2-Jun-06 16:28 
GeneralRe: What is this Code snippet meaning? Pin
Krishnaraj Barvathaya B4-Jun-06 21:38
Krishnaraj Barvathaya B4-Jun-06 21:38 
Questionhow to convert number to currency and currency to number Pin
roitha2-Jun-06 0:19
roitha2-Jun-06 0:19 
AnswerRe: how to convert number to currency and currency to number Pin
Steve Pullan2-Jun-06 1:18
Steve Pullan2-Jun-06 1:18 
QuestionHow to Handle the event raised by control inside the Template column of a DataGrid? Pin
Krishnaraj Barvathaya B1-Jun-06 23:57
Krishnaraj Barvathaya B1-Jun-06 23:57 
AnswerRe: How to Handle the event raised by control inside the Template column of a DataGrid? Pin
FrankyT2-Jun-06 16:51
FrankyT2-Jun-06 16:51 
ASP is not my specialty so I can't address the edit-mode or the postback, but for the events, the short answer is to:

create a custom control that inheirts your first Template collumn.

add a public delegate and event within it. raise the custom event on the first templatecollumns changed event.

public delegate sub delIndexChanged(sender as object, e as system.eventargs)
public event evtIndexChanged as delIndexChanged

Private thing(sender as object, e as system.eventargs) handles me.selectedindexchanged
RaiseEvent me.evtIndexChanged(sender,e)
End sub

in your mainpage (the one with the grid), Replace the template col reference with one to your custom control.

once you instantiate the grid cols, add a handler for the evtIndexChanged that points to a sub with
AddHandler MyGrid.cols(idx).evtIndexChanged , AddressOf <subname>
where <subname> has the appropo parameter list for the delegate signature.
that will fire whenever the first col changes. I would use it to gen a filterstatement for a dataview.

to fire the col directly you can just RaiseEvent Object.Event(parameters...) I think. postbacks will complicate this.

I just read somthing about the asp2.0 callback model, and they claim there are now ways to update stuff on the UI (via server side processing) without posting back on the client. you may want to look into it but as I said web isnt my area of expertise.

Hope That Helps,
FrankyT


hey...slang is the vernacular for the vernacular...wow
GeneralRe: How to Handle the event raised by control inside the Template column of a DataGrid? Pin
Krishnaraj Barvathaya B4-Jun-06 21:41
Krishnaraj Barvathaya B4-Jun-06 21:41 
QuestionProblem while opening a project in Visual Studio 6.0 Pin
padma_011-Jun-06 23:13
padma_011-Jun-06 23:13 
AnswerRe: Problem while opening a project in Visual Studio 6.0 Pin
Steve Pullan2-Jun-06 1:20
Steve Pullan2-Jun-06 1:20 
QuestionVB.NET Trial Version Pin
Socheat.Net1-Jun-06 22:13
Socheat.Net1-Jun-06 22:13 
AnswerRe: VB.NET Trial Version Pin
Leeland2-Jun-06 3:11
Leeland2-Jun-06 3:11 
GeneralRe: VB.NET Trial Version Pin
Socheat.Net2-Jun-06 21:42
Socheat.Net2-Jun-06 21:42 
GeneralRe: VB.NET Trial Version Pin
Steve Pullan2-Jun-06 23:41
Steve Pullan2-Jun-06 23:41 
Questionhelp me with this... urgent... code below... Pin
ransomed_guy1-Jun-06 22:10
ransomed_guy1-Jun-06 22:10 
AnswerRe: help me with this... urgent... code below... Pin
Capt_Thanas2-Jun-06 4:37
Capt_Thanas2-Jun-06 4:37 
GeneralRe: help me with this... urgent... code below... Pin
Guffa2-Jun-06 6:25
Guffa2-Jun-06 6:25 
QuestionBrowser Pin
Socheat.Net1-Jun-06 21:33
Socheat.Net1-Jun-06 21:33 
QuestionHow to count an Overtime Pin
Swiss Mantoro1-Jun-06 21:25
Swiss Mantoro1-Jun-06 21:25 
AnswerRe: How to count an Overtime Pin
Guffa1-Jun-06 21:35
Guffa1-Jun-06 21:35 
GeneralRe: How to count an Overtime Pin
Swiss Mantoro2-Jun-06 18:05
Swiss Mantoro2-Jun-06 18:05 
AnswerRe: How to count an Overtime Pin
Guffa2-Jun-06 23:25
Guffa2-Jun-06 23:25 
Questionhelp me please in this checkedlistbox.. [modified] Pin
nellyvb.net1-Jun-06 20:28
nellyvb.net1-Jun-06 20:28 
QuestionPlease help explain this code... Pin
JackIsMe7771-Jun-06 20:07
JackIsMe7771-Jun-06 20:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.