Alsalam alikom
there is a walk throught that i saw in msdn but in fact i coulden't simulate it into my project
the walk throught name is
Walkthrough: Using a DataGrid Web Control to Read and Write Data
starting from that part of the code i cant understand or apply to my database
and i think there is easier way but i need first to understand that part then create my own part
string categoryName; string categoryDescription; TextBox tb; tb = (TextBox) e.Item.Cells[2].Controls[0]; categoryName = tb.Text; tb = (TextBox) e.Item.Cells[3].Controls[0]; categoryDescription = tb.Text