Hi,
First add a tablestyle to the datagrid then I would add a handler to
the datagridtextboxcolumns textbox validating event.
Add Tablestyle
http://msdn.microsoft.com/library/d...tingwindowsformsdatagridvisualbasicprimer.asp
http://msdn.microsoft.com/library/d...ry/en-us/dnwinforms/html/wnf_custdatagrid.asp
Add a handler to the textbox validating event
Dim colDescription As New DatagridTextboxcolumn
With colDescription
..MappingName = "Notes"
..HeaderText = "Notes"
..Width = 350
End With
AddHandler colDescription.TextBox.Validating, AddressOf CellValidating
Private Sub CellValidating(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs)
Debug.WriteLine(DirectCast(sender, DataGridTextBox).Text)
End Sub
Ken
------------------------
How do I validate inputs in DataGrid ? I want to check for constraint and
change columns value dynamically,
for e.g i've column named employee, annual salary and salary
I want the columns annual salary to be dynamically changed when user changes
salary in datagrid
How do I do it?