Well my problem is the next buddies
I have a GridView, well Actually a RagGrid From telerik control
I get the data executing a StoreProcedure and storing in a Datatable
the I just use the next code
DataTable dtListValues = null; //this is my DataTable where i'm going to store the Data
and then the page ends with this
NameColumns PKValue NameValue isActive
but!! I don't want to use this names!! :sigh:
And to "fix" this I try to use this
dtListValues.Columns[0].Caption = "Code";
I already used this code after and before executing the DataBind
But!!!! It doesn't work!!! =(
Could someone Tell Me where I'm wrong :( ?
I hope you can help me please
thanks in advanced
Greetings!!!
I have a GridView, well Actually a RagGrid From telerik control
I get the data executing a StoreProcedure and storing in a Datatable
the I just use the next code
DataTable dtListValues = null; //this is my DataTable where i'm going to store the Data
dtListValues = LoValues.oListValues(Values.PKValue); //this is the method to get the Data, that returns a DataTable
this.rgValues.DataSource = dtListValues; //Choosing a DataSource for the RadGrid
this.rgValues.DataBind(); //binding!! hehehe! ;P
and then the page ends with thisNameColumns PKValue NameValue isActive
but!! I don't want to use this names!! :sigh:
And to "fix" this I try to use this
dtListValues.Columns[0].Caption = "Code";
dtListValues.Columns[1].Caption = "Name";
dtListValues.Columns[2].Caption = "Active";
I already used this code after and before executing the DataBindBut!!!! It doesn't work!!! =(
Could someone Tell Me where I'm wrong :( ?
I hope you can help me please
thanks in advanced
Greetings!!!