W
williamfrenette
To add record into my grid I use the footer way like explain here :
http://aspnet.4guysfromrolla.com/articles/021203-1.aspx
But i dont want a Add button on each row so i call the showfooter with
another button.
DBEditDataGrid.ShowFooter := true;
DBEditDataGrid.SelectedIndex := DBEditDataGrid.Items.Count;
LoadDataFromDB;
DataBindGrid;
The problem is that i dont have the ( e As DataGridCommandEventArgs )
to go read in textbox with something like :
var txtStorID :TextBox;
txtStorID = e.Item.FindControl('add_storID')
So i tried: DataGrid.FindControl('add_storID');
but the object dont exist...
By the way im with Delphi but if you have a vb or c# idea it would be
great too.
Thank you.
http://aspnet.4guysfromrolla.com/articles/021203-1.aspx
But i dont want a Add button on each row so i call the showfooter with
another button.
DBEditDataGrid.ShowFooter := true;
DBEditDataGrid.SelectedIndex := DBEditDataGrid.Items.Count;
LoadDataFromDB;
DataBindGrid;
The problem is that i dont have the ( e As DataGridCommandEventArgs )
to go read in textbox with something like :
var txtStorID :TextBox;
txtStorID = e.Item.FindControl('add_storID')
So i tried: DataGrid.FindControl('add_storID');
but the object dont exist...
By the way im with Delphi but if you have a vb or c# idea it would be
great too.
Thank you.