DataGrid String Binding problem
-
Hi Friends I want to bind the String with the DataGrid , in such a way that i have one string say "125:test" . I want this string to be bound with the datagrid , so that , each and every character , means 1 2 5 : t e s t , will store individually ,in the individual cell of the datagrid. Please , guide me. Thanking you, Param
param
-
Hi Friends I want to bind the String with the DataGrid , in such a way that i have one string say "125:test" . I want this string to be bound with the datagrid , so that , each and every character , means 1 2 5 : t e s t , will store individually ,in the individual cell of the datagrid. Please , guide me. Thanking you, Param
param
Hi, You can create rows and cells using a loop where in you parse a given string and put 1 character in the cells text property. But please note that there will be problems if your strings are not of same length. If that is the case, you will have to enter the blank values in cells where there are less number of characters. Hope I am clear enough and the solution can be implemented :)
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
-
Hi Friends I want to bind the String with the DataGrid , in such a way that i have one string say "125:test" . I want this string to be bound with the datagrid , so that , each and every character , means 1 2 5 : t e s t , will store individually ,in the individual cell of the datagrid. Please , guide me. Thanking you, Param
param
-
Hi Friends I want to bind the String with the DataGrid , in such a way that i have one string say "125:test" . I want this string to be bound with the datagrid , so that , each and every character , means 1 2 5 : t e s t , will store individually ,in the individual cell of the datagrid. Please , guide me. Thanking you, Param
param
Hi, I dont remeber but you can directly attach a string as a data source to a data grid as -- value = "123:test" dataGrid1.datasource=value here value is declared to be a string variable. I read it somewhere on the other forums here on CP (not able to remember the exact link) But i dont think that this will work in case if multiple rows are needed. Dont know ! i havent checked it myself !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
-
Hi, I dont remeber but you can directly attach a string as a data source to a data grid as -- value = "123:test" dataGrid1.datasource=value here value is declared to be a string variable. I read it somewhere on the other forums here on CP (not able to remember the exact link) But i dont think that this will work in case if multiple rows are needed. Dont know ! i havent checked it myself !
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
hai its working out,i checked string value1="123 test"; DataGrid1.DataSource=value1; DataGrid1.DataBind(); with regards